This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] for openslp ICE


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].

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}";


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]