------- Comment #31 from hjl dot tools at gmail dot com 2009-01-20 21:17 ------- Created an attachment (id=17154) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17154&action=view) A testcase
Revision 143498 gave: [...@gnu-34 ppc]$ /export/gnu/import/rrs/143498/usr/bin/gcc -S bar.c -O2; egrep "32\(%rsp\)" bar.s movq %rdi, 32(%rsp) movq 32(%rsp), %rdi movq 32(%rsp), %rdi movq %rdx, 32(%rsp) movq 32(%rsp), %rcx movq %r14, 32(%rsp) movq 32(%rsp), %rax movq 32(%rsp), %rsi movq 32(%rsp), %rsi movq 32(%rsp), %rdi [...@gnu-34 ppc]$ The stack slot 32(%rsp) is used to save RDI. But it is also use for something else. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38587