mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 22:41:28 +08:00
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:
parent
81b822d5d0
commit
329ad38002
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user