aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-10-25 17:30:55 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-10-25 17:30:55 -0700
commit4667f7054615e6c51d1eac60350ecc39377b9b8b (patch)
treee1f6fb9fab6f19b42ca9dd50ec2c6df5cb841181 /gcc
parent78192b0984feaab04d373d0754d06d8a7cd623f3 (diff)
downloadgcc-4667f7054615e6c51d1eac60350ecc39377b9b8b.zip
gcc-4667f7054615e6c51d1eac60350ecc39377b9b8b.tar.gz
gcc-4667f7054615e6c51d1eac60350ecc39377b9b8b.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/recog.c6
2 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3edb9b2..588ac13 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,14 +1,13 @@
2000-10-25 Richard Henderson <rth@redhat.com>
+ * recog.c (constrain_operands): Initialize which_alternative
+ before no alternatives early exit.
+
* cse.c (find_comparison_args): Check that we can reverse a
comparison if needed before accepting the substitution.
-2000-10-25 Richard Henderson <rth@redhat.com>
-
* reload.c (find_reloads_address_part): Kill rtx obstack hackery.
-2000-10-25 Richard Henderson <rth@redhat.com>
-
* simplify-rtx.c (simplify_relational_operation): Sign extend
low words before sign extending to high words.
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,