re PR middle-end/44790 (Bootstrap fails after MEM-REF merge)
PR middle-end/44790 PR middle-end/44993 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make sure the base has address_mode before adding the offset. From-SVN: r162618
This commit is contained in:
parent
51680dfb02
commit
b4351367ce
@ -1,4 +1,12 @@
|
|||||||
|
2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
|
PR middle-end/44790
|
||||||
|
PR middle-end/44993
|
||||||
|
* expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
|
||||||
|
sure the base has address_mode before adding the offset.
|
||||||
|
|
||||||
2010-07-27 Xinliang David Li <davidxl@google.com>
|
2010-07-27 Xinliang David Li <davidxl@google.com>
|
||||||
|
|
||||||
* tree-flow.h (create_mem_ref): Add one new parameter.
|
* tree-flow.h (create_mem_ref): Add one new parameter.
|
||||||
* tree-ssa-address.c (create_mem_ref): New parameter.
|
* tree-ssa-address.c (create_mem_ref): New parameter.
|
||||||
(addr_to_parts): Ditto.
|
(addr_to_parts): Ditto.
|
||||||
|
11
gcc/expr.c
11
gcc/expr.c
@ -8730,11 +8730,14 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
|
|||||||
base = build2 (BIT_AND_EXPR, TREE_TYPE (base),
|
base = build2 (BIT_AND_EXPR, TREE_TYPE (base),
|
||||||
gimple_assign_rhs1 (def_stmt),
|
gimple_assign_rhs1 (def_stmt),
|
||||||
gimple_assign_rhs2 (def_stmt));
|
gimple_assign_rhs2 (def_stmt));
|
||||||
|
op0 = expand_expr (base, NULL_RTX, VOIDmode, EXPAND_NORMAL);
|
||||||
|
op0 = convert_memory_address_addr_space (address_mode, op0, as);
|
||||||
if (!integer_zerop (TREE_OPERAND (exp, 1)))
|
if (!integer_zerop (TREE_OPERAND (exp, 1)))
|
||||||
base = build2 (POINTER_PLUS_EXPR, TREE_TYPE (base),
|
{
|
||||||
base, double_int_to_tree (sizetype,
|
rtx off
|
||||||
mem_ref_offset (exp)));
|
= immed_double_int_const (mem_ref_offset (exp), address_mode);
|
||||||
op0 = expand_expr (base, NULL_RTX, address_mode, EXPAND_SUM);
|
op0 = simplify_gen_binary (PLUS, address_mode, op0, off);
|
||||||
|
}
|
||||||
op0 = memory_address_addr_space (mode, op0, as);
|
op0 = memory_address_addr_space (mode, op0, as);
|
||||||
temp = gen_rtx_MEM (mode, op0);
|
temp = gen_rtx_MEM (mode, op0);
|
||||||
set_mem_attributes (temp, exp, 0);
|
set_mem_attributes (temp, exp, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user