diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/regrename.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8a6637..1d0d6e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-04-30 Tom Rix <trix@redhat.com> + + * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity + check which_alternative. + 2002-04-30 Kazu Hirata <kazu@hxi.com> * cpplex.c: Fix comment formatting. diff --git a/gcc/regrename.c b/gcc/regrename.c index 82f3ae9..6463879 100644 --- a/gcc/regrename.c +++ b/gcc/regrename.c @@ -786,7 +786,8 @@ build_def_use (bb) icode = recog_memoized (insn); extract_insn (insn); - constrain_operands (1); + if (! constrain_operands (1)) + fatal_insn_not_found (insn); preprocess_constraints (); alt = which_alternative; n_ops = recog_data.n_operands; @@ -1546,7 +1547,8 @@ copyprop_hardreg_forward_1 (bb, vd) set = single_set (insn); extract_insn (insn); - constrain_operands (1); + if (! constrain_operands (1)) + fatal_insn_not_found (insn); preprocess_constraints (); alt = which_alternative; n_ops = recog_data.n_operands; |