From: Jakub Jelinek Date: Wed, 30 Nov 2016 13:01:34 +0000 (+0100) Subject: ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx for REG_EQUIV argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c7973212032bb1d4240a305b9ffb99469f67e89;p=gcc.git ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx for REG_EQUIV argument. * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx for REG_EQUIV argument. From-SVN: r243017 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b4c4e307b4..5b91b860c54 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-30 Jakub Jelinek + + * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx + for REG_EQUIV argument. + 2016-11-30 Thomas Preud'homme * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33. diff --git a/gcc/ira.c b/gcc/ira.c index d20ec99fae5..358110b6a31 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -2647,7 +2647,7 @@ ira_update_equiv_info_by_shuffle_insn (int to_regno, int from_regno, rtx_insn *i } if (find_reg_note (insn, REG_EQUIV, x) == NULL_RTX) { - note = set_unique_reg_note (insn, REG_EQUIV, x); + note = set_unique_reg_note (insn, REG_EQUIV, copy_rtx (x)); gcc_assert (note != NULL_RTX); if (internal_flag_ira_verbose > 3 && ira_dump_file != NULL) {