This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Painful problems with -fpic implementation on powerpc-sysv


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]