aboutsummaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-12-01 23:19:12 +0000
committerJeff Law <law@gcc.gnu.org>1998-12-01 16:19:12 -0700
commite3f6ee2303845a686d15fdbf83a9e5e7275f7a9d (patch)
tree045df2848628b5e0a6675b645730aa13dbb9902e /gcc/flow.c
parent6f4d72224e91330c6c02d5b96b04b97e84024589 (diff)
downloadgcc-e3f6ee2303845a686d15fdbf83a9e5e7275f7a9d.zip
gcc-e3f6ee2303845a686d15fdbf83a9e5e7275f7a9d.tar.gz
gcc-e3f6ee2303845a686d15fdbf83a9e5e7275f7a9d.tar.bz2
flow.c (delete_block): Call set_last_insn if we end up deleting the last insn in the rtl chain.
* flow.c (delete_block): Call set_last_insn if we end up deleting the last insn in the rtl chain. From-SVN: r24052
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 510c011..825bf22 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -1018,12 +1018,16 @@ delete_block (i)
NEXT_INSN (PREV_INSN (basic_block_head[i])) = insn;
if (insn != 0)
PREV_INSN (insn) = PREV_INSN (basic_block_head[i]);
+ else
+ set_last_insn (PREV_INSN (basic_block_head[i]));
}
else
{
NEXT_INSN (PREV_INSN (basic_block_head[i])) = kept_head;
if (insn != 0)
PREV_INSN (insn) = kept_tail;
+ else
+ set_last_insn (kept_tail);
PREV_INSN (kept_head) = PREV_INSN (basic_block_head[i]);
NEXT_INSN (kept_tail) = insn;