aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-08-04 20:32:26 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-08-04 16:32:26 -0400
commit2a94e396c65da274a48a7d572d3e229dace92308 (patch)
tree4a398d31ea01c511e18d9471d6ab9b551de30477 /gcc/expr.c
parentd42058b1a7670ac3abdb33dc4c47ec99343c1ca2 (diff)
downloadgcc-2a94e396c65da274a48a7d572d3e229dace92308.zip
gcc-2a94e396c65da274a48a7d572d3e229dace92308.tar.gz
gcc-2a94e396c65da274a48a7d572d3e229dace92308.tar.bz2
* expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
From-SVN: r28511
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 e240961..a76ee1a 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6989,7 +6989,7 @@ expand_expr (exp, target, tmode, modifier)
constant_part
= immed_double_const (TREE_INT_CST_LOW (TREE_OPERAND (exp, 1)),
(HOST_WIDE_INT) 0,
- GET_MODE (op0));
+ TYPE_MODE (TREE_TYPE (TREE_OPERAND (exp, 0))));
op0 = plus_constant (op0, INTVAL (constant_part));
if (modifier != EXPAND_SUM && modifier != EXPAND_INITIALIZER)
op0 = force_operand (op0, target);