aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-12-17 09:46:16 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-12-17 09:46:16 +0100
commit2477c234e2d89f875e19d4b6d112b7c321b46a55 (patch)
treef92bb1a3fc127f78ad307e0ca9da5c8aac5a2d7d /gcc/expr.c
parent1ede59e4c72ec83a3382e5ca5f4779c819977a8c (diff)
downloadgcc-2477c234e2d89f875e19d4b6d112b7c321b46a55.zip
gcc-2477c234e2d89f875e19d4b6d112b7c321b46a55.tar.gz
gcc-2477c234e2d89f875e19d4b6d112b7c321b46a55.tar.bz2
expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x) instead of x as last gen_lowpart...
* expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x) instead of x as last gen_lowpart argument. From-SVN: r206040
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index cde0b85..1c56589 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);