[Bug middle-end/47602] Permit inline asm to clobber PIC register

kaffeemonster at googlemail dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 24 16:38:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47602

Jan Seiffert <kaffeemonster at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kaffeemonster at googlemail
                   |                            |dot com

--- Comment #15 from Jan Seiffert <kaffeemonster at googlemail dot com> 2011-12-24 15:54:23 UTC ---
As a heavy inline asm user myself, i can understand the pain to handle PIC
yourself, but there is no way around that.

You can "accidentally" use the PIC register by a memory operand ("m"). Then the
compiler can not save it for you.

Greetings
Jan



More information about the Gcc-bugs mailing list