This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic PIC register?
- To: dalej at apple dot com
- Subject: Re: dynamic PIC register?
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Thu, 20 Sep 2001 21:55:20 -0400
- cc: gcc at gcc dot gnu dot org
>>>>> dalej writes:
Dale> On the Darwin powerpc target, it would be better not to have
Dale> PIC_OFFSET_TABLE_REGNUM be a fixed register. In particular, it should be
Dale> a register saved over calls in a non-leaf function, and a register not
Dale> saved over calls in a leaf function. I could do this by changing the
Dale> fixed register at the last minute in the target-dependent prolog/epilog
Dale> generation (which is what we did in the 2.95 version currently shipping).
Dale> But it seems to me a cleaner solution that also applies to other targets
Dale> might be useful. Is this so, and how might I go about it?
I thought that Geoff and/or Franz explored this for the 32-bit
PowerPC SVR4 GOT register and found this was not practical, but I don't
remember the details. Maybe the impediment no longer exists.
David