This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



  In message <99061723185900.00938@ns1102.munich.netsurf.de>you write:
  > Am Don, 17 Jun 1999 schrieb Jeffrey A Law:
  > Hmm, sounds like a big task.
It's certainly nontrivial.  That's probably why it's been a todo item since
about 1992.

  > So there's currently no way to order accesses to the GOT in gcc,
  > independent of platform.
Not really..  A lot of platforms have unspecs to try and avoid some of these
problems.  For example you could have the code which computes the address
of a symbolic have a (unspec (mem ... )) or something like that.


  > BTW, Geoff suggested to replace all unspec 8 with something like this:
  > (define_expand "movsi_got"
  >   [(set (match_operand:SI 0 "register_operand" "")
  >         (mem (plus (unspec [(match_operand:SI 1 "got_operand" "")] 8)
  >                  (match_dup 2))))]
Yea, with a little work on GO_IF_LEGITIMATE_ADDRESS this kind of scheme
would probably work. 


jeff



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]