This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the EGCS project.
Re: -fpic on powerpc is still not quite right.
- To: Geoff Keating <geoffk@ozemail.com.au>
- Subject: Re: -fpic on powerpc is still not quite right.
- From: Jeffrey A Law <law@cygnus.com>
- Date: Thu, 05 Aug 1999 00:59:36 -0600
- cc: egcs-patches@egcs.cygnus.com
- Reply-To: law@cygnus.com
In message <199907171216.WAA01564@geoffk.wattle.id.au>you write:
>
> The problem is that you can't change the stack configuration after
> reload has finished eliminating the frame pointer, etc., registers.
>
> Unfortunately, reload can still generate new memory references after
> this point.
>
> So with -fpic, every function must have a stack frame capable of at
> least saving r30 (the PIC offset table register), even if it probably
> won't need it.
>
> Alternatively, we could teach find_reload about PIC offset table
> registers...
>
> I attach a patch. I've checked it on the 19990716 prerelease. It
> causes no testsuite regressions.
>
> It may be too late to include this in 2.95, but it should go on the
> release branch.
>
> --
> Geoffrey Keating <geoffk@cygnus.com> <geoffk@ozemail.com.au>
>
> ===File ~/patches/egcs-13.diff==============================
> Fri Jul 16 23:43:36 1999 <geoffk@cygnus.com>
>
> * config/rs6000/rs6000.c (rs6000_stack_info): Don't allow reload
> to change the stack frame configuration.
Thanks. Installed on both the release branch and the mainline sources.
jeff