Should asm("" : : : "memory") order accesses to the GOT?

Jeffrey A Law
Thu Jun 17 13:47:00 GMT 1999

  In message < >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

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 :-)


More information about the Gcc mailing list