diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-27 07:57:32 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-27 07:57:32 +0000 |
commit | aac97179151ea6f0b0852c3b39e0a5b6676b11e8 (patch) | |
tree | 4942851c740d706d2f23a310e7920ef2a4116f2a /gcc/resource.c | |
parent | 8f601f9766403f29955c08812fa69d241d787ad4 (diff) | |
download | gcc-aac97179151ea6f0b0852c3b39e0a5b6676b11e8.tar.gz |
* 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
Diffstat (limited to 'gcc/resource.c')
-rw-r--r-- | gcc/resource.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |