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
This commit is contained in:
Jakub Jelinek 2008-12-11 10:15:17 +01:00 committed by Jakub Jelinek
parent 81b822d5d0
commit 329ad38002
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>
Fix testsuite/gfortran.dg/graphite/id-4.f90.

View File

@ -3610,7 +3610,9 @@ gimplify_init_constructor (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
else
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;