From 9f484185af054bcf345c2859d862056e6d8d21eb Mon Sep 17 00:00:00 2001 From: jakub Date: Tue, 17 Dec 2013 08:46:16 +0000 Subject: * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x) instead of x as last gen_lowpart argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206040 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index cde0b859421..1c5658923bd 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -719,7 +719,7 @@ convert_modes (enum machine_mode mode, enum machine_mode oldmode, rtx x, int uns if (GET_CODE (x) == SUBREG && SUBREG_PROMOTED_VAR_P (x) && GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))) >= GET_MODE_SIZE (mode) && SUBREG_PROMOTED_UNSIGNED_P (x) == unsignedp) - x = gen_lowpart (mode, x); + x = gen_lowpart (mode, SUBREG_REG (x)); if (GET_MODE (x) != VOIDmode) oldmode = GET_MODE (x); -- cgit v1.2.1