Oust HPPA PIC_OFFSET_TABLE_REGNUM_SAVED

Jeffrey A Law law@redhat.com
Wed, 17 Jan 2001 14:42:12 -0700


  In message <200101171622.LAA13215@hiauly1.hia.nrc.ca>you write:
  > I think all these problems can be resolved by emitting the insn at the
  > first call.  We just have to keep track of whether it has been emitted
  > or not.
I'm not entirely sure what you mean by this.

We must emit the code to restore the PIC register after each call when
generating PIC code.  There are no known exceptions to this rule.

You might be talking about saving the PIC register into the stack or
pseudo during the prologue.  Yes, we could arrange to do that if and
only if we had a call in PIC mode.  That's fairly easy to do.


jeff