Hi I am trying to register shadow a global variable using -ffixed option in llvm-gcc. I am able to accomplish this using gcc however llvm-gcc seems to ignore this option and generate code using the register. command line: >gcc -Wall -m64 -O3 -pthread -ftls-model=initial-exec -ffixed-r12 test.c -o test >objdump -d ./test | grep r12 >llvm-gcc -Wall -m64 -O3 -pthread -ftls-model=initial-exec -ffixed-r12 test.c -o test >objdump -d ./test | grep r12 .... ... //uses r12 register I was wondering if "-ffixed" option is not supported by llvm-gcc. If so I was wondering what is the best approach to register shadow a global variable in llvm. Best, --Hari
On Jan 21, 2011, at 2:56 PM, Hari Pyla wrote:> I was wondering if "-ffixed" option is not supported by llvm-gcc. If so > I was wondering what is the best approach to register shadow a global > variable in llvm.LLVM doesn't support -ffixed and global register variables. /jakob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110121/f00a8518/attachment.html>