aboutsummaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2002-04-30 21:39:46 +0000
committerTom Rix <trix@gcc.gnu.org>2002-04-30 21:39:46 +0000
commit4be9e9cbe4570993119a33c8376a385755085fc8 (patch)
tree50030524a13052e54d51d78e3d0cd5668a9ed0ac /gcc/regrename.c
parent1eeeb6a437b35a0a48b7758d33e2d33164ca52db (diff)
downloadgcc-4be9e9cbe4570993119a33c8376a385755085fc8.zip
gcc-4be9e9cbe4570993119a33c8376a385755085fc8.tar.gz
gcc-4be9e9cbe4570993119a33c8376a385755085fc8.tar.bz2
Add sanity check to regrename.c.
From-SVN: r52974
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c6
1 files changed, 4 insertions, 2 deletions
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;