From da120c2f90a1e4569629883091c842b01b34e103 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 23 Apr 1993 06:56:05 -0400 Subject: [PATCH] (expand_expr... (expand_expr, case OFFSET_REF): Avoid using build_{unary,binary}_op since the calling sequences depend on the front-end. From-SVN: r4195 --- gcc/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2