This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/23200] [4.0/4.1/4.2 regression] rejects "i"(&var + 1)
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2006 22:20:38 -0000
- Subject: [Bug inline-asm/23200] [4.0/4.1/4.2 regression] rejects "i"(&var + 1)
- References: <bug-23200-11104@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #23 from jakub at gcc dot gnu dot org 2006-10-04 22:20 -------
"i"(&var) of course can't work with -fpic, it would only work at the expense
of text relocations, but those are not allowed on some architectures and highly
undesirable on the rest of architectures. In position independent code,
&var typically means you need to load that address from global offset table
into a register, and a register of course can't satisfy "i" constraint.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23200