This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/34833] rejects "i"(&var) with -fpic -m32
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2008 12:08:36 -0000
- Subject: [Bug inline-asm/34833] rejects "i"(&var) with -fpic -m32
- References: <bug-34833-11104@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-01-19 12:08 -------
Well with x86_64, PIC addressing global variables is simpler as you have access
to the rip register. Try this on any other target, you will get a rejection.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34833