[Bug middle-end/47602] Permit inline asm to clobber PIC register
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 4 01:42:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47602
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2011-02-04 01:42:03 UTC ---
(In reply to comment #6)
>
> I can not find any discussion about fixing this issue in any way other than
> forbidding it.
>
EBX is fixed in PIC. If it is changed in asm, it should be saved and
restored in asm. Otherwise, non-leaf functions may not work properly
even if it is saved/restored in prologue/epilogue.
More information about the Gcc-bugs
mailing list