Subject: Re: New-toolchain bug on m68k
To: Steve Woodford <steve@mctavish.co.uk>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 12/15/2001 09:43:04
On Sat, Dec 15, 2001 at 05:22:31PM +0000, Steve Woodford wrote:

 > I've fixed this locally using the following patch to
 > gcc/config/m68k/m68k.c, but I thought it better to run it past folks with
 > more gcc clue than me before commiting.

Is there anything in gcc-current that might be related?  You also might
discuss this on gcc@gcc.gnu.org if the bug still exists in gcc-current.

 > 
 > Cheers, Steve
 > 
 > Index: m68k.c
 > ===================================================================
 > RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/gcc/config/m68k/m68k.c,v
 > retrieving revision 1.1.1.1
 > diff -u -r1.1.1.1 m68k.c
 > --- m68k.c	2000/07/26 00:18:31	1.1.1.1
 > +++ m68k.c	2001/12/15 17:19:16
 > @@ -462,7 +462,8 @@
 >  				  -cfa_store_offset + n_regs++ * 4);
 >  	}
 >      }
 > -  if (flag_pic && current_function_uses_pic_offset_table)
 > +  if (flag_pic && current_function_uses_pic_offset_table &&
 > +      regs_ever_live[PIC_OFFSET_TABLE_REGNUM])
 >      {
 >  #ifdef MOTOROLA
 >        asm_fprintf (stream, "\t%Olea (%Rpc, %U_GLOBAL_OFFSET_TABLE_@GOTPC), %s\n",
 > 

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>