summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-10-27 00:57:32 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-10-27 00:57:32 -0700
commit0b8d60fa5dbf87627b1531b54724e00d4d9b2115 (patch)
tree4942851c740d706d2f23a310e7920ef2a4116f2a /gcc
parent646997096c3bb0d1f9e2f9629acd146ad50442c7 (diff)
downloadgcc-0b8d60fa5dbf87627b1531b54724e00d4d9b2115.tar.gz
resource.c (mark_target_live_regs): Check that the target insn wasn't created after compute_bb_for_insn.
* resource.c (mark_target_live_regs): Check that the target insn wasn't created after compute_bb_for_insn. From-SVN: r30212
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/resource.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fa17678030e..4722a9aae04 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/resource.c b/gcc/resource.c
index 9645e4d6aaa..d56552ab1ae 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -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)