aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-08-02 20:44:38 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2012-08-02 20:44:38 +0000
commit9f49eaacc8af40474baf22b412ae721b33b81b58 (patch)
tree7ebf193fc0886aa75e0dc830a863e6b85d974649 /gcc/recog.c
parent8010c31ae211fedfe3137ecbdf18c4601115b7b9 (diff)
gcc/
* recog.c (split_insn): Copy the original SET_SRC before using it as a note. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@190102 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/recog.c b/gcc/recog.c
index a05e8c608f7..d7381abd579 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -2831,7 +2831,8 @@ split_insn (rtx insn)
if (note && CONSTANT_P (XEXP (note, 0)))
set_unique_reg_note (last, REG_EQUAL, XEXP (note, 0));
else if (CONSTANT_P (SET_SRC (insn_set)))
- set_unique_reg_note (last, REG_EQUAL, SET_SRC (insn_set));
+ set_unique_reg_note (last, REG_EQUAL,
+ copy_rtx (SET_SRC (insn_set)));
}
}