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, Geoff Keating <geoffk at ozemail dot com dot au>
- Subject: Re: Painful problems with -fpic implementation on powerpc-sysv
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 26 Aug 1998 12:18:46 -0700
- Cc: egcs at cygnus dot com, Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- References: <199808190652.QAA15243@geoffk.wattle.id.au> <768.904115205@hurl.cygnus.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Wed, Aug 26, 1998 at 01:06:45AM -0600, Jeffrey A Law wrote:
> First, having the PIC register be a pseudo is bad. This is the core
> problem that we need to fix.
It would be really nice if we could solve this, as I have plans to
try exactly the same thing on x86, where added register pressure due
to losing 1 of 6 registers is horrible.
> This is non-optimal, but will work. Trying to allocate the PIC reg
> via a pseudo will not because we can not allocate a pseudo for the
> PIC register during the reload pass (or anytime after flow).
A possible solution is not to create such a pseudo any longer, but
instead to reload the PIC value into a hardreg via secondary reloads.
r~