[development-gcc] [patch] for openslp ICE

Jan Hubicka jh@suse.cz
Tue Jan 13 22:32:00 GMT 2004


> Hello,
> 
> > libslp_parse.c: In function `SLPUnescape':
> > libslp_parse.c:341: internal compiler error: Segmentation fault
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://www.suse.de/feedback> for instructions.
> 
> it seems to be a cut-and-paste error in the md; this patch fixes it.
> 
> Zdenek
> 
> 	* config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
Yep, this looks obviously correct.

Honza
> 
> Index: config/i386/i386.md
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
> retrieving revision 1.500
> diff -c -3 -p -r1.500 i386.md
> *** config/i386/i386.md	9 Jan 2004 01:01:48 -0000	1.500
> --- config/i386/i386.md	13 Jan 2004 22:07:00 -0000
> ***************
> *** 6307,6313 ****
>         if (GET_CODE (operands[1]) == CONST_INT
>   	  && INTVAL (operands[1]) < 0)
>   	{
> ! 	  operands[2] = GEN_INT (-INTVAL (operands[2]));
>   	  return "sub{b}\t{%1, %0|%0, %1}";
>   	}
>         return "add{b}\t{%1, %0|%0, %1}";
> --- 6307,6313 ----
>         if (GET_CODE (operands[1]) == CONST_INT
>   	  && INTVAL (operands[1]) < 0)
>   	{
> ! 	  operands[1] = GEN_INT (-INTVAL (operands[1]));
>   	  return "sub{b}\t{%1, %0|%0, %1}";
>   	}
>         return "add{b}\t{%1, %0|%0, %1}";



More information about the Gcc-patches mailing list