From 4667f7054615e6c51d1eac60350ecc39377b9b8b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 25 Oct 2000 17:30:55 -0700 Subject: recog.c (constrain_operands): Initialize which_alternative before no alternatives early exit. * recog.c (constrain_operands): Initialize which_alternative before no alternatives early exit. From-SVN: r37065 --- gcc/recog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/recog.c') diff --git a/gcc/recog.c b/gcc/recog.c index d88ac05..b0010ba 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -2332,6 +2332,7 @@ constrain_operands (strict) struct funny_match funny_match[MAX_RECOG_OPERANDS]; int funny_match_index; + which_alternative = 0; if (recog_data.n_operands == 0 || recog_data.n_alternatives == 0) return 1; @@ -2341,9 +2342,7 @@ constrain_operands (strict) matching_operands[c] = -1; } - which_alternative = 0; - - while (which_alternative < recog_data.n_alternatives) + do { register int opno; int lose = 0; @@ -2646,6 +2645,7 @@ constrain_operands (strict) which_alternative++; } + while (which_alternative < recog_data.n_alternatives); which_alternative = -1; /* If we are about to reject this, but we are not to test strictly, -- cgit v1.1