From: Eric Botcazou Date: Sat, 3 Dec 2016 17:37:13 +0000 (+0000) Subject: lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all cases to build... X-Git-Tag: basepoints/gcc-8~2557 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b84aa9456004ceee2bceb813843525ee11bd7d;p=thirdparty%2Fgcc.git lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all cases to build a lowpart SUBREG. * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all cases to build a lowpart SUBREG. From-SVN: r243222 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 396580a59ba1..496c691afdce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-03 Eric Botcazou + + * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all + cases to build a lowpart SUBREG. + 2016-12-03 Eric Botcazou David S. Miller diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 260591acb06b..e661aefe202e 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -1109,9 +1109,9 @@ emit_spill_move (bool to_p, rtx mem_pseudo, rtx val) dependent macro HARD_REGNO_CALLER_SAVE_MODE. */ if (! MEM_P (val)) { - val = gen_rtx_SUBREG (GET_MODE (mem_pseudo), - GET_CODE (val) == SUBREG ? SUBREG_REG (val) : val, - 0); + val = gen_lowpart_SUBREG (GET_MODE (mem_pseudo), + GET_CODE (val) == SUBREG + ? SUBREG_REG (val) : val); LRA_SUBREG_P (val) = 1; } else