This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Oust HPPA PIC_OFFSET_TABLE_REGNUM_SAVED
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: Oust HPPA PIC_OFFSET_TABLE_REGNUM_SAVED
- From: Jeffrey A Law <law at redhat dot com>
- Date: Wed, 17 Jan 2001 14:42:12 -0700
- cc: alan at linuxcare dot com dot au, rth at redhat dot com, gcc-patches at gcc dot gnu dot org, parisc-linux at puffin dot external dot hp dot com
- Reply-To: law at redhat dot com
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