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]

Fix for stypid bug in recog.c


Noticed this while playing with some patches that use preprocess_constraints.

Bernd

	* recog.c (preprocess_constraints): Matching constraints affect
	same alternative/different operand, not same operand/different
	alternative.

Index: recog.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/recog.c,v
retrieving revision 1.87
diff -c -p -r1.87 recog.c
*** recog.c	1999/11/05 09:34:17	1.87
--- recog.c	2000/03/04 19:02:18
*************** preprocess_constraints ()
*** 2130,2138 ****
  		case '0': case '1': case '2': case '3': case '4':
  		case '5': case '6': case '7': case '8': case '9':
  		  op_alt[j].matches = c - '0';
! 		  op_alt[op_alt[j].matches].matched = i;
  		  break;
! 
  		case 'm':
  		  op_alt[j].memory_ok = 1;
  		  break;
--- 2131,2139 ----
  		case '0': case '1': case '2': case '3': case '4':
  		case '5': case '6': case '7': case '8': case '9':
  		  op_alt[j].matches = c - '0';
! 		  recog_op_alt[op_alt[j].matches][j].matched = i;
  		  break;
! 		  
  		case 'm':
  		  op_alt[j].memory_ok = 1;
  		  break;


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