diff options
author | Tom Rix <trix@redhat.com> | 2002-04-30 21:39:46 +0000 |
---|---|---|
committer | Tom Rix <trix@gcc.gnu.org> | 2002-04-30 21:39:46 +0000 |
commit | 4be9e9cbe4570993119a33c8376a385755085fc8 (patch) | |
tree | 50030524a13052e54d51d78e3d0cd5668a9ed0ac /gcc | |
parent | 1eeeb6a437b35a0a48b7758d33e2d33164ca52db (diff) | |
download | gcc-4be9e9cbe4570993119a33c8376a385755085fc8.zip gcc-4be9e9cbe4570993119a33c8376a385755085fc8.tar.gz gcc-4be9e9cbe4570993119a33c8376a385755085fc8.tar.bz2 |
Add sanity check to regrename.c.
From-SVN: r52974
Diffstat (limited to 'gcc')
-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; |