summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-04-23 10:56:05 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-04-23 10:56:05 +0000
commitf4ef76773c94db7b32f1b23d587afebd285647dd (patch)
tree5c394f785e1134c48cf55a88c23f1046850b1c21 /gcc
parenta1397da299b64960c87eeb14474ad993a74af8d9 (diff)
downloadppe42-gcc-f4ef76773c94db7b32f1b23d587afebd285647dd.tar.gz
ppe42-gcc-f4ef76773c94db7b32f1b23d587afebd285647dd.zip
(expand_expr, case OFFSET_REF): Avoid using build_{unary,binary}_op
since the calling sequences depend on the front-end. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 95a046b8823..b0e422b582b 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -3955,7 +3955,7 @@ expand_expr (exp, target, tmode, modifier)
case OFFSET_REF:
{
- tree base = build_unary_op (ADDR_EXPR, TREE_OPERAND (exp, 0), 0);
+ tree base = build1 (ADDR_EXPR, type, TREE_OPERAND (exp, 0));
tree addr = build (PLUS_EXPR, type, base, TREE_OPERAND (exp, 1));
op0 = expand_expr (addr, NULL_RTX, VOIDmode, EXPAND_SUM);
temp = gen_rtx (MEM, mode, memory_address (mode, op0));
OpenPOWER on IntegriCloud