From efa68ffca9f9032e795ae84c5642038bd613c253 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Fri, 2 Dec 2016 11:52:58 +0000 Subject: [PATCH] S/390: Fix RTL sharing when generating reg note. gcc/ChangeLog: 2016-12-02 Andreas Krebbel * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing problem. From-SVN: r243173 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/s390.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0cefa75425..03387cfcac0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-02 Andreas Krebbel + + * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing + problem. + 2016-12-02 Georg-Johann Lay * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 767666e3f7b..030e10de5df 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -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))); } } } -- 2.30.2