This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/47602] Permit inline asm to clobber PIC register
- From: "kaffeemonster at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Dec 2011 15:54:23 +0000
- Subject: [Bug middle-end/47602] Permit inline asm to clobber PIC register
- Auto-submitted: auto-generated
- References: <bug-47602-4@http.gcc.gnu.org/bugzilla/>
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