From 59bc6ce9b36fbec321968053801612f16a3f53a0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 18 Mar 2016 09:25:57 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/reload1.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 115d77871a6..9604293777c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-03-18 Jakub Jelinek + + * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx + instead of replace_rtx for DEBUG_INSNs. + 2016-03-18 Venkataramanan Kumar * config/i386/znver1.md : Fix latencies of FP/SSE/AVX diff --git a/gcc/reload1.c b/gcc/reload1.c index 252394e0777..c2800f8cb79 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)); } -- 2.30.2