Painful problems with -fpic implementation on powerpc-sysv

Richard Henderson rth@cygnus.com
Wed Aug 26 12:26:00 GMT 1998


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~



More information about the Gcc mailing list