This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Minor m68k PIC cleanup
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: Minor m68k PIC cleanup
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 08 Jul 1999 14:15:18 -0600
- cc: Marc Espie <espie at quatramaran dot ens dot fr>, egcs-patches at egcs dot cygnus dot com, schwab at issan dot informatik dot uni-dortmund dot de
- Reply-To: law at cygnus dot com
In message <19990707195000.C28719@cygnus.com>you write:
> On Tue, Jul 06, 1999 at 07:12:21AM -0600, Jeffrey A Law wrote:
> > > Unless I'm completely mistaken, that patch (and the other part
> > > that makes the m68k PIC register fixed) is a major ABI change.
> > It certainly is not supposed to be an ABI change. Please analyze this
> > problem.
>
> Don had marked %a5 fixed, but not (as we document requiring) call_used.
> You corrected this, but now the prologue and epilogue emitters must be
> adjusted.
>
> Something like this might work. It appears as if the right sort of
> code is present for updating reg_ever_live for addresses generated
> during reload.
>
>
> r~
>
>
> * m68k.c (output_function_prologue): Add pic register to mask
> if live and flag_pic.
> (output_function_epilogue): Likewise.
I tweaked this to update num_save_regs in the prologue and installed it
onto the branch and the mainline sources.
Thanks,
jeff