Commit 329ad380 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/38253 (g++.dg/ipa/iinline-1.C scan-ipa-dump inline fails on powerpc)

	PR c++/38253
	* gimplify.c (gimplify_init_constructor): Don't force constructor
	into memory if there is just one nonzero element.

From-SVN: r142674
parent 81b822d5
2008-12-11 Jakub Jelinek <jakub@redhat.com>
PR c++/38253
* gimplify.c (gimplify_init_constructor): Don't force constructor
into memory if there is just one nonzero element.
2008-12-11 Sebastian Pop <sebastian.pop@amd.com> 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
Fix testsuite/gfortran.dg/graphite/id-4.f90. Fix testsuite/gfortran.dg/graphite/id-4.f90.
...@@ -3610,7 +3610,9 @@ gimplify_init_constructor (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, ...@@ -3610,7 +3610,9 @@ gimplify_init_constructor (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
else else
align = TYPE_ALIGN (type); align = TYPE_ALIGN (type);
if (size > 0 && !can_move_by_pieces (size, align)) if (size > 0
&& num_nonzero_elements > 1
&& !can_move_by_pieces (size, align))
{ {
tree new_tree; tree new_tree;
......
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