diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-26 00:30:55 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-26 00:30:55 +0000 |
commit | d05ae33891171495f57647323aeb3328cede34aa (patch) | |
tree | e1f6fb9fab6f19b42ca9dd50ec2c6df5cb841181 /gcc/recog.c | |
parent | 6d1304b6a2f256096417c8ecbdb5066a1d4906b2 (diff) | |
download | gcc-d05ae33891171495f57647323aeb3328cede34aa.tar.gz |
* recog.c (constrain_operands): Initialize which_alternative
before no alternatives early exit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index d88ac05aaf9..b0010ba9d8f 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, |