summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-03-28 22:19:36 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-03-28 22:19:36 -0800
commitf8ed19583966af84157bae20f3fbe422e74ec7c2 (patch)
tree16034cad640b80685e8cdfd819c623f43262295f /gcc/reload1.c
parent54e203858d9abbd383f7ad829bd4d439e2b55180 (diff)
downloadgcc-f8ed19583966af84157bae20f3fbe422e74ec7c2.tar.gz
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
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c13
1 files changed, 12 insertions, 1 deletions
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;
}