[Bug target/66782] Unable to run 64-bit wine after MS->SYSV register changes
marcus at jet dot franken.de
gcc-bugzilla@gcc.gnu.org
Tue Jul 7 21:42:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66782
--- Comment #3 from marcus at jet dot franken.de ---
Created attachment 35927
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35927&action=edit
testcase-min.i
gcc -S -fPIC -O2 -g testcase.i -o testcase.s
there will be a pattern to spot the miscompilation:
call strlen@PLT
.LVL27:
movq 40(%rsp), %rcx
movq %rsi, %rdx
However %rsi is clobbered by strlen and should not have been used here.
More information about the Gcc-bugs
mailing list