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: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: Painful problems with -fpic implementation on powerpc-sysv
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 26 Aug 1998 20:01:03 -0600
- 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>
- Reply-To: law at cygnus dot com
In message <9808261614.AA32650@marc.watson.ibm.com>you write:
> >>>>> Jeffrey A Law writes:
>
> Jeff> We should select a callee saved register and reserve it for PIC.
>
> What does the SVR4 PPC ABI say about r2 which AIX uses for its
> addressibility TOC register? I thought that it was "reserved" or
> something. It's fixed throughout the PowerPC port -- both AIX and
> SVR4/eABI. IF not that one then you run into conflicts with argument
> registers or saved registers.
It says:
Register r2 is reserved for system use and should not be changed by
application code.
I don't know if that gives us the leeway we need to claim it.
jeff