From f8ed19583966af84157bae20f3fbe422e74ec7c2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 28 Mar 2002 22:19:36 -0800 Subject: re PR target/6087 (3.1 i86 FP stack pop bug) PR target/6087 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence. From-SVN: r51543 --- gcc/reload1.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gcc/reload1.c') diff --git a/gcc/reload1.c b/gcc/reload1.c index fce489da0d0..c36799f4381 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -9517,8 +9517,19 @@ fixup_abnormal_edges () next = NEXT_INSN (insn); if (INSN_P (insn)) { - insert_insn_on_edge (PATTERN (insn), e); + rtx seq; + delete_insn (insn); + + /* We're not deleting it, we're moving it. */ + INSN_DELETED_P (insn) = 0; + + /* Emit a sequence, rather than scarfing the pattern, so + that we don't lose REG_NOTES etc. */ + /* ??? Could copy the test from gen_sequence, but don't + think it's worth the bother. */ + seq = gen_rtx_SEQUENCE (VOIDmode, gen_rtvec (1, insn)); + insert_insn_on_edge (seq, e); } insn = next; } -- cgit v1.2.1