From: Jakub Jelinek Date: Fri, 18 Mar 2016 08:25:57 +0000 (+0100) Subject: reload1.c (emit_input_reload_insns): Use simplify_replace_rtx instead of replace_rtx... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59bc6ce9b36fbec321968053801612f16a3f53a0;p=gcc.git 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 --- 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)); }