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
This commit is contained in:
Richard Henderson 1999-10-27 00:57:32 -07:00 committed by Richard Henderson
parent 646997096c
commit 0b8d60fa5d
2 changed files with 7 additions and 1 deletions

View 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.

View 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)