+2011-01-27 Martin Jambor <mjambor@suse.cz>
+
+ PR tree-optimization/47228
+ * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
+ build_ref_for_offset.
+
2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu-elf.h (ASM_SPEC): Remove.
+2011-01-27 Martin Jambor <mjambor@suse.cz>
+
+ PR tree-optimization/47228
+ * gcc.dg/torture/pr47228.c: New test.
+
2011-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.dg/tree-ssa/pr42585.c: Disable on s390 and s390x.
&& !contains_bitfld_comp_ref_p (lhs)
&& !access_has_children_p (lacc))
{
- lhs = build_ref_for_offset (loc, lhs, 0, TREE_TYPE (rhs),
- gsi, false);
+ lhs = build_ref_for_model (loc, lhs, 0, racc, gsi, false);
gimple_assign_set_lhs (*stmt, lhs);
}
else if (AGGREGATE_TYPE_P (TREE_TYPE (rhs))
&& !contains_vce_or_bfcref_p (rhs)
&& !access_has_children_p (racc))
- rhs = build_ref_for_offset (loc, rhs, 0, TREE_TYPE (lhs),
- gsi, false);
+ rhs = build_ref_for_model (loc, rhs, 0, lacc, gsi, false);
if (!useless_type_conversion_p (TREE_TYPE (lhs), TREE_TYPE (rhs)))
{