This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix for stypid bug in recog.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Fix for stypid bug in recog.c
- From: Bernd Schmidt <bernds at balti dot cygnus dot co dot uk>
- Date: Sat, 4 Mar 2000 19:57:28 +0000 (GMT)
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;