aboutsummaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authorJames Van Artsdalen <jrv@gnu.org>1993-03-13 21:33:23 +0000
committerJames Van Artsdalen <jrv@gnu.org>1993-03-13 21:33:23 +0000
commitfabf77509211dabd11f2f06b39115c7f4e4db735 (patch)
tree4dd5f6e6224a46ebc1e3c50a8615d8827a4d49b8 /gcc/reg-stack.c
parent4969d05d19f5bd0cfef7118e1d8b2760a5508e41 (diff)
downloadgcc-fabf77509211dabd11f2f06b39115c7f4e4db735.zip
gcc-fabf77509211dabd11f2f06b39115c7f4e4db735.tar.gz
gcc-fabf77509211dabd11f2f06b39115c7f4e4db735.tar.bz2
(emit_swap_insn): If emitting after a cc0 setter, link the cc0 insns.
From-SVN: r3726
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r--gcc/reg-stack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c
index c0a37ee..7c92c41 100644
--- a/gcc/reg-stack.c
+++ b/gcc/reg-stack.c
@@ -1587,6 +1587,9 @@ emit_swap_insn (insn, regstack, reg)
return;
}
+ if (sets_cc0_p (PATTERN (i1)))
+ link_cc0_insns (i1);
+
swap_rtx = gen_swapdf (FP_mode_reg[hard_regno][(int) DFmode],
FP_mode_reg[FIRST_STACK_REG][(int) DFmode]);
swap_insn = emit_insn_after (swap_rtx, i1);