2010-07-04 Richard Guenther <rguenther@suse.de>
PR middle-end/44809
* gimplify.c (gimplify_expr): Properly build a MEM_REF instead
of an INDIRECT_REF.
* g++.dg/torture/pr44809.C: New testcase.
From-SVN: r161803
+2010-07-04 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/44809
+ * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
+ of an INDIRECT_REF.
+
2010-07-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44479
that temporary. */
tmp = build_fold_addr_expr_loc (input_location, *expr_p);
gimplify_expr (&tmp, pre_p, post_p, is_gimple_reg, fb_rvalue);
- *expr_p = build1 (INDIRECT_REF, TREE_TYPE (TREE_TYPE (tmp)), tmp);
+ *expr_p = build_simple_mem_ref (tmp);
}
else if ((fallback & fb_rvalue) && is_gimple_reg_rhs_or_call (*expr_p))
{
+2010-07-04 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/44809
+ * g++.dg/torture/pr44809.C: New testcase.
+
2010-07-04 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44656
--- /dev/null
+// { dg-do compile }
+unsigned int mEvictionRank[(1 << 5)];
+void Unswap(int i)
+{
+ mEvictionRank[i] = ({ unsigned int __v = i; __v; });
+}