This is the mail archive of the gcc-patches@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: Oust HPPA PIC_OFFSET_TABLE_REGNUM_SAVED



  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

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