Minor m68k PIC cleanup

Jeffrey A Law law@cygnus.com
Sat Jul 31 22:30:00 GMT 1999


  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



More information about the Gcc-patches mailing list