This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should asm("" : : : "memory") order accesses to the GOT?
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: Should asm("" : : : "memory") order accesses to the GOT?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 17 Jun 1999 14:42:03 -0600
- cc: egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <99061722151000.00879@ns1102.munich.netsurf.de>you write:
> the subject says it all, should address loads from the GOT considered as
> memory accesses?
It should. But typically we do not represent GOT references as memory
references.
This is a fairly generic problem with our PIC code in the sense that we're
lying to the compiler about what the machine actually does. Lots of ports
have the same problem.
If we ever revamp how we represent PIC internally, this is one of the problems
I want to fix :-)
jeff