Commit e3f6ee23 by Jeffrey A Law Committed by Jeff Law

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
parent 6f4d7222
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment