Commit 478e2092 by Andrew Pinski Committed by Andrew Pinski

re PR tree-optimization/18572 (Bus error compiling makegpr.adb on Mac OS X 10.3)

2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18572
        * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
        it.

From-SVN: r91024
parent 65c844e2
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
......
......@@ -1832,6 +1832,8 @@ scalarize_init (struct sra_elt *lhs_elt, tree rhs, block_stmt_iterator *bsi)
/* 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);
......
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