Commit 4667f705 by Richard Henderson Committed by Richard Henderson

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
parent 78192b09
2000-10-25 Richard Henderson <rth@redhat.com> 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 * cse.c (find_comparison_args): Check that we can reverse a
comparison if needed before accepting the substitution. 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. * 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 * simplify-rtx.c (simplify_relational_operation): Sign extend
low words before sign extending to high words. low words before sign extending to high words.
......
...@@ -2332,6 +2332,7 @@ constrain_operands (strict) ...@@ -2332,6 +2332,7 @@ constrain_operands (strict)
struct funny_match funny_match[MAX_RECOG_OPERANDS]; struct funny_match funny_match[MAX_RECOG_OPERANDS];
int funny_match_index; int funny_match_index;
which_alternative = 0;
if (recog_data.n_operands == 0 || recog_data.n_alternatives == 0) if (recog_data.n_operands == 0 || recog_data.n_alternatives == 0)
return 1; return 1;
...@@ -2341,9 +2342,7 @@ constrain_operands (strict) ...@@ -2341,9 +2342,7 @@ constrain_operands (strict)
matching_operands[c] = -1; matching_operands[c] = -1;
} }
which_alternative = 0; do
while (which_alternative < recog_data.n_alternatives)
{ {
register int opno; register int opno;
int lose = 0; int lose = 0;
...@@ -2646,6 +2645,7 @@ constrain_operands (strict) ...@@ -2646,6 +2645,7 @@ constrain_operands (strict)
which_alternative++; which_alternative++;
} }
while (which_alternative < recog_data.n_alternatives);
which_alternative = -1; which_alternative = -1;
/* If we are about to reject this, but we are not to test strictly, /* If we are about to reject this, but we are not to test strictly,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment