summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e0d98d5)
PR tree-optimization/51583
* tree-sra.c (load_assign_lhs_subreplacements): Call
force_gimple_operand_gsi when necessary also in case of no
corresponding replacement on the RHS.
* testsuite/gcc.dg/tree-ssa/pr51583.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182483
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-12-19 Martin Jambor <mjambor@suse.cz>
+
+ PR tree-optimization/51583
+ * tree-sra.c (load_assign_lhs_subreplacements): Call
+ force_gimple_operand_gsi when necessary also in case of no
+ corresponding replacement on the RHS.
+
2011-12-19 Jakub Jelinek <jakub@redhat.com>
* gimple.h (gimplify_seq_add_stmt): Rename to...
2011-12-19 Jakub Jelinek <jakub@redhat.com>
* gimple.h (gimplify_seq_add_stmt): Rename to...
+2011-12-19 Martin Jambor <mjambor@suse.cz>
+
+ PR tree-optimization/51583
+ * gcc.dg/tree-ssa/pr51583.c: New test.
+
2011-12-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/51596
2011-12-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/51596
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+typedef __complex__ double Value;
+
+union U
+{
+ Value v;
+ char c[sizeof(Value)];
+};
+
+struct S
+{
+ union U u;
+ int i,j;
+};
+
+Value gv;
+int gi, gj;
+
+Value foo (void)
+{
+ struct S s,t;
+
+ t.i = gi;
+ t.j = gj;
+ t.u.v = gv;
+ t.u.c[0] = 0;
+
+ s = t;
+ __imag__ s.u.v += s.i;
+
+ return s.u.v;
+}
else
rhs = build_ref_for_model (loc, top_racc->base, offset, lacc,
new_gsi, true);
else
rhs = build_ref_for_model (loc, top_racc->base, offset, lacc,
new_gsi, true);
+ if (lacc->grp_partial_lhs)
+ rhs = force_gimple_operand_gsi (new_gsi, rhs, true, NULL_TREE,
+ false, GSI_NEW_STMT);
}
stmt = gimple_build_assign (get_access_replacement (lacc), rhs);
}
stmt = gimple_build_assign (get_access_replacement (lacc), rhs);