OSDN Git Service

(expand_expr, case OFFSET_REF): Avoid using build_{unary,binary}_op
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Apr 1993 10:56:05 +0000 (10:56 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Apr 1993 10:56:05 +0000 (10:56 +0000)
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

gcc/expr.c

index 95a046b..b0e422b 100644 (file)
@@ -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));