Commit da120c2f by Richard Kenner

(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
parent a3279355
...@@ -3955,7 +3955,7 @@ expand_expr (exp, target, tmode, modifier) ...@@ -3955,7 +3955,7 @@ expand_expr (exp, target, tmode, modifier)
case OFFSET_REF: 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)); tree addr = build (PLUS_EXPR, type, base, TREE_OPERAND (exp, 1));
op0 = expand_expr (addr, NULL_RTX, VOIDmode, EXPAND_SUM); op0 = expand_expr (addr, NULL_RTX, VOIDmode, EXPAND_SUM);
temp = gen_rtx (MEM, mode, memory_address (mode, op0)); temp = gen_rtx (MEM, mode, memory_address (mode, op0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment