diff options
author | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2016-12-02 11:52:58 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2016-12-02 11:52:58 +0000 |
commit | efa68ffca9f9032e795ae84c5642038bd613c253 (patch) | |
tree | 46e2c1576a2ce5bdea628daf39021d7c215a837f /gcc | |
parent | 45d5091d5cfa98d0a6906b9333e0396344040810 (diff) | |
download | gcc-efa68ffca9f9032e795ae84c5642038bd613c253.zip gcc-efa68ffca9f9032e795ae84c5642038bd613c253.tar.gz gcc-efa68ffca9f9032e795ae84c5642038bd613c253.tar.bz2 |
S/390: Fix RTL sharing when generating reg note.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0cefa7..03387cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 767666e..030e10d 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))); } } } |