From: Bernd Schmidt Date: Thu, 9 Mar 2000 16:07:33 +0000 (+0000) Subject: Fix a bug in preprocess_constraints X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37c5269a9f449dcba7506876258aa75548c5766b;p=gcc.git Fix a bug in preprocess_constraints From-SVN: r32447 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c721bf51e8b..824e4d4baa6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2000-03-09 Bernd Schmidt + * recog.c (preprocess_constraints): Matching constraints affect + same alternative/different operand, not same operand/different + alternative. + * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable register and a constant specially. diff --git a/gcc/recog.c b/gcc/recog.c index 56f86345b21..c732dc29bdc 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -2131,7 +2131,7 @@ preprocess_constraints () 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; + recog_op_alt[op_alt[j].matches][j].matched = i; break; case 'm':