* resource.c (mark_target_live_regs): Check that the target
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Oct 1999 07:57:32 +0000 (07:57 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Oct 1999 07:57:32 +0000 (07:57 +0000)
        insn wasn't created after compute_bb_for_insn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30212 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/resource.c

index fa17678..4722a9a 100644 (file)
@@ -1,3 +1,8 @@
+Wed Oct 27 00:56:59 1999  Richard Henderson  <rth@cygnus.com>
+
+       * resource.c (mark_target_live_regs): Check that the target
+       insn wasn't created after compute_bb_for_insn.
+
 Tue Oct 26 23:15:03 1999  Mark Mitchell  <mark@codesourcery.com>
 
        * ggc-page.c (poison_pages): Don't be overzealous.
index 9645e4d..d56552a 100644 (file)
@@ -831,7 +831,8 @@ mark_target_live_regs (insns, target, res)
        b = tinfo->block;
     }
 
-  if (b == -1)
+  if (b == -1
+      && INSN_UID (target) < (int) VARRAY_SIZE (basic_block_for_insn))
     b = BLOCK_NUM (target);
 
   if (target_hash_table != NULL)