From 3535a0fb6f43d4d985f3bbf9699bc3eea4fb64b0 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 13 Apr 2017 08:02:33 -0600 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/reload1.c | 2 ++ 2 files changed, 7 insertions(+) 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)); } -- 2.30.2