aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-03-18 09:25:57 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-03-18 09:25:57 +0100
commit59bc6ce9b36fbec321968053801612f16a3f53a0 (patch)
tree4be74a0eafde60023e200a9a53125b140001199b
parentdd125026935bd067c6da488d7faf94b180f1c861 (diff)
downloadgcc-59bc6ce9b36fbec321968053801612f16a3f53a0.zip
gcc-59bc6ce9b36fbec321968053801612f16a3f53a0.tar.gz
gcc-59bc6ce9b36fbec321968053801612f16a3f53a0.tar.bz2
reload1.c (emit_input_reload_insns): Use simplify_replace_rtx instead of replace_rtx for DEBUG_INSNs.
* reload1.c (emit_input_reload_insns): Use simplify_replace_rtx instead of replace_rtx for DEBUG_INSNs. From-SVN: r234320
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/reload1.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 115d778..9604293 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-18 Jakub Jelinek <jakub@redhat.com>
+
+ * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
+ instead of replace_rtx for DEBUG_INSNs.
+
2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
* config/i386/znver1.md : Fix latencies of FP/SSE/AVX
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 252394e..c2800f8 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -7395,7 +7395,9 @@ emit_input_reload_insns (struct insn_chain *chain, struct reload *rl,
/* Adjust any debug insns between temp and insn. */
while ((temp = NEXT_INSN (temp)) != insn)
if (DEBUG_INSN_P (temp))
- replace_rtx (PATTERN (temp), old, reloadreg);
+ INSN_VAR_LOCATION_LOC (temp)
+ = simplify_replace_rtx (INSN_VAR_LOCATION_LOC (temp),
+ old, reloadreg);
else
gcc_assert (NOTE_P (temp));
}