This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Painful problems with -fpic implementation on powerpc-sysv
- To: law at cygnus dot com
- Subject: Re: Painful problems with -fpic implementation on powerpc-sysv
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Wed, 26 Aug 1998 22:57:28 -0400
- Cc: Geoff Keating <geoffk at ozemail dot com dot au>, egcs at cygnus dot com, Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>, Michael Meissner <meissner at cygnus dot com>
>>>>> Jeffrey A Law writes:
Jeff> It says:
Jeff> Register r2 is reserved for system use and should not be changed by
Jeff> application code.
Jeff> I don't know if that gives us the leeway we need to claim it.
Yeah, that's sort of what I remembered. I have no idea what that
means though I would think that GOT addressibility comes under system use
and not application code.
I would defer to Meissner as he has been involved with the PPC
eABI which is a variant of PPC SVR4, so he should know how the committee
intended r2 to be used. If not r2, then I guess r30 would be the next
best choice as that is used for the AIX "minimal-TOC" alternate TOC
register which has similar requirements for an addressibility register
allocated by the compiler if the ABI intended "system use" to mean
something else.
David