aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-10-02 14:58:47 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-10-02 14:58:47 -0400
commit9bfe7965ed1369931c5ffcbbc47530943f5ac9e8 (patch)
tree3e17b2020ee5bc23896e5b0ba200a9370a789fb4
parent988337ca704454a79edec069264f11205f7ff2fd (diff)
downloadgcc-9bfe7965ed1369931c5ffcbbc47530943f5ac9e8.zip
gcc-9bfe7965ed1369931c5ffcbbc47530943f5ac9e8.tar.gz
gcc-9bfe7965ed1369931c5ffcbbc47530943f5ac9e8.tar.bz2
(fill_slots_from_thread): Update THREAD if deleting its first insn.
From-SVN: r8203
-rw-r--r--gcc/reorg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 4082ad8..98b7f29 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -3265,6 +3265,9 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely,
if (own_thread)
{
update_block (trial, thread);
+ if (trial == thread)
+ thread = next_active_insn (thread);
+
delete_insn (trial);
}
else