This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed] [SH] Fix PR target/78633
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Jan 2017 13:09:15 +0900 (JST)
- Subject: [patch committed] [SH] Fix PR target/78633
- Authentication-results: sourceware.org; auth=none
Hi,
I've applied the quick fix below for PR target/78633 which results
a build failure on the target. Tested on sh4-unknown-linux-gnu.
Regards,
kaz
--
2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/78633
* config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
RTL sharing.
diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index c6956a0..2645fca 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -858,7 +858,8 @@
operands of the tstsi_t insn, which is generally the case. */
if (dump_file)
fprintf (dump_file, "cmpeqsi_t: replacing with tstsi_t\n");
- emit_insn (gen_tstsi_t (XEXP (op.set_src, 0), XEXP (op.set_src, 1)));
+ emit_insn (gen_tstsi_t (copy_rtx (XEXP (op.set_src, 0)),
+ copy_rtx (XEXP (op.set_src, 1))));
DONE;
}