From 37c5269a9f449dcba7506876258aa75548c5766b Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 9 Mar 2000 16:07:33 +0000 Subject: [PATCH] Fix a bug in preprocess_constraints From-SVN: r32447 --- gcc/ChangeLog | 4 ++++ gcc/recog.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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': -- 2.30.2