From: Jeff Law Date: Thu, 13 Apr 2017 14:02:33 +0000 (-0600) Subject: reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs appearing in DEBUG_... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3535a0fb6f43d4d985f3bbf9699bc3eea4fb64b0;p=gcc.git reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs appearing in DEBUG_INSNs. * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs appearing in DEBUG_INSNs. From-SVN: r246904 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 740ca666456..caec4409c33 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-04-13 Jeff Law + + * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs + appearing in DEBUG_INSNs. + 2017-04-13 Martin Liska PR gcov-profile/80413 diff --git a/gcc/reload1.c b/gcc/reload1.c index c1ce7caeca9..4dc118ef9f3 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -2831,6 +2831,8 @@ eliminate_regs_1 (rtx x, machine_mode mem_mode, rtx insn, || x_size == new_size) ) return adjust_address_nv (new_rtx, GET_MODE (x), SUBREG_BYTE (x)); + else if (insn && GET_CODE (insn) == DEBUG_INSN) + return gen_rtx_raw_SUBREG (GET_MODE (x), new_rtx, SUBREG_BYTE (x)); else return gen_rtx_SUBREG (GET_MODE (x), new_rtx, SUBREG_BYTE (x)); }