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
This commit is contained in:
Jeffrey A Law 1998-12-01 23:19:12 +00:00 committed by Jeff Law
parent 6f4d72224e
commit e3f6ee2303
2 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,9 @@ Tue Dec 1 15:03:30 1998 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
Tue Dec 1 15:20:44 1998 Jeffrey A Law (law@cygnus.com)
* flow.c (delete_block): Call set_last_insn if we end up deleting the
last insn in the rtl chain.
* reload1.c (reload): Do not set reload_completed or split insns
here. Instead...
* toplev.c (rest_of_compilation): Set reload_completed after

View File

@ -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;