From aac97179151ea6f0b0852c3b39e0a5b6676b11e8 Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 27 Oct 1999 07:57:32 +0000 Subject: [PATCH] * resource.c (mark_target_live_regs): Check that the target 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 | 5 +++++ gcc/resource.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa17678..4722a9a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 27 00:56:59 1999 Richard Henderson + + * 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 * ggc-page.c (poison_pages): Don't be overzealous. diff --git a/gcc/resource.c b/gcc/resource.c index 9645e4d..d56552a 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) -- 2.7.4