Commit 0ee95c43 by Richard Guenther Committed by Richard Biener

re PR middle-end/44790 (Bootstrap fails after MEM-REF merge)

2010-07-07  Richard Guenther  <rguenther@suse.de>

	PR middle-end/44790
	* expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
	for expanding the constant offset for MEM_REFs.

From-SVN: r161907
parent 86353474
2010-07-07 Richard Guenther <rguenther@suse.de> 2010-07-07 Richard Guenther <rguenther@suse.de>
PR middle-end/44790
* expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
for expanding the constant offset for MEM_REFs.
2010-07-07 Richard Guenther <rguenther@suse.de>
* tree-ssa-propagate.h (valid_gimple_call_p): Remove. * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
* tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix. * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
* gimple.h (is_gimple_operand): Remove. * gimple.h (is_gimple_operand): Remove.
......
...@@ -8777,13 +8777,11 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, ...@@ -8777,13 +8777,11 @@ 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, address_mode, EXPAND_NORMAL);
if (!integer_zerop (TREE_OPERAND (exp, 1))) if (!integer_zerop (TREE_OPERAND (exp, 1)))
{ base = build2 (POINTER_PLUS_EXPR, TREE_TYPE (base),
rtx off; base, double_int_to_tree (sizetype,
off = immed_double_int_const (mem_ref_offset (exp), address_mode); mem_ref_offset (exp)));
op0 = simplify_gen_binary (PLUS, address_mode, op0, off); op0 = expand_expr (base, NULL_RTX, address_mode, EXPAND_SUM);
}
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);
......
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