]> gcc.gnu.org Git - gcc.git/commitdiff
resource.c (mark_target_live_regs): Check that the target insn wasn't created after...
authorRichard Henderson <rth@cygnus.com>
Wed, 27 Oct 1999 07:57:32 +0000 (00:57 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 27 Oct 1999 07:57:32 +0000 (00:57 -0700)
        * resource.c (mark_target_live_regs): Check that the target
        insn wasn't created after compute_bb_for_insn.

From-SVN: r30212

gcc/ChangeLog
gcc/resource.c

index fa17678030e573d7a2bea8bf142d3381fcb0f20a..4722a9aae0472f041ea749275a13fd8294c3998b 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 9645e4d6aaa3de612e5fad8852f31b6285b06519..d56552ab1aeeba74cb12c6c6481efb533736949e 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)
This page took 0.086098 seconds and 5 git commands to generate.