PR tree-opt/18572
* tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91024
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR tree-opt/18572
+ * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
+ it.
+
2004-11-22 Richard Henderson <rth@redhat.com>
* function.c (assign_parm_setup_block): Revert 11-13 change to
/* Generate initialization statements for all members extant in the RHS. */
if (rhs)
{
+ /* Unshare the expression just in case this is from a decl's initial. */
+ rhs = unshare_expr (rhs);
push_gimplify_context ();
result = generate_element_init (lhs_elt, rhs, &list);
pop_gimplify_context (NULL);