re PR target/78633 ([SH] libgcc/fp-bit.c:944:1: error: invalid rtl sharing found...
authorKaz Kojima <kkojima@gcc.gnu.org>
Tue, 17 Jan 2017 04:07:51 +0000 (04:07 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Tue, 17 Jan 2017 04:07:51 +0000 (04:07 +0000)
PR target/78633
* config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
RTL sharing.

From-SVN: r244516

gcc/ChangeLog
gcc/config/sh/sh.md

index 073b53e..1feb936 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2017-01-17  Alan Modra  <amodra@gmail.com>
 
        PR target/79066
index 11576f4..2645fca 100644 (file)
         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;
     }