Commit 4b73962b by Jan Hubicka Committed by Jan Hubicka

emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential amount of…

emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential amount of copies of INSN_NOTEs list.

	* emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential
	amount of copies of INSN_NOTEs list.

Co-Authored-By: Vladimir Yanovsky <volodyan@gmail.com>

From-SVN: r120283
parent f45e0ad1
2006-12-30 Jan Hubicka <jh@suse.cz>
Vladimir Yanovsky <volodyan@gmail.com>
* emit-rt.c (emit_copy_of_insn_after): Fix bug causing exponential
amount of copies of INSN_NOTEs list.
2006-12-29 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_exapnd_queue): Rename to...
......
......@@ -5297,14 +5297,12 @@ emit_copy_of_insn_after (rtx insn, rtx after)
{
if (GET_CODE (link) == EXPR_LIST)
REG_NOTES (new)
= copy_insn_1 (gen_rtx_EXPR_LIST (REG_NOTE_KIND (link),
XEXP (link, 0),
REG_NOTES (new)));
= gen_rtx_EXPR_LIST (REG_NOTE_KIND (link),
copy_insn_1 (XEXP (link, 0)), REG_NOTES (new));
else
REG_NOTES (new)
= copy_insn_1 (gen_rtx_INSN_LIST (REG_NOTE_KIND (link),
XEXP (link, 0),
REG_NOTES (new)));
= gen_rtx_INSN_LIST (REG_NOTE_KIND (link),
copy_insn_1 (XEXP (link, 0)), REG_NOTES (new));
}
/* Fix the libcall sequences. */
......
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