OSDN Git Service

Add sanity check to regrename.c.
authortrix <trix@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 21:39:46 +0000 (21:39 +0000)
committertrix <trix@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Apr 2002 21:39:46 +0000 (21:39 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52974 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regrename.c

index b8a6637..1d0d6e8 100644 (file)
@@ -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.
index 82f3ae9..6463879 100644 (file)
@@ -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;