S/390: Fix RTL sharing when generating reg note.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 2 Dec 2016 11:52:58 +0000 (11:52 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 2 Dec 2016 11:52:58 +0000 (11:52 +0000)
gcc/ChangeLog:

2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
problem.

From-SVN: r243173

gcc/ChangeLog
gcc/config/s390/s390.c

index a0cefa7..03387cf 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
+       problem.
+
 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
 
        * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
index 767666e..030e10d 100644 (file)
@@ -10666,7 +10666,7 @@ s390_save_gprs_to_fprs (void)
          /* This prevents dwarf2cfi from interpreting the set.  Doing
             so it might emit def_cfa_register infos setting an FPR as
             new CFA.  */
-         add_reg_note (insn, REG_CFA_REGISTER, PATTERN (insn));
+         add_reg_note (insn, REG_CFA_REGISTER, copy_rtx (PATTERN (insn)));
        }
     }
 }