OSDN Git Service

Backported from mainline
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2012 16:02:52 +0000 (16:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2012 16:02:52 +0000 (16:02 +0000)
commita519a6a745c1d33c1de86311994db51efa7d6c7b
tree95508a8044b8454e1bcda29f3fa4017c9cd79f8b
parentcaa6b9ffa89467ac19aefbdf5642a0e34e227479
Backported from mainline
2012-08-24  Jakub Jelinek  <jakub@redhat.com>

PR c/54363
* gimplify.c (optimize_compound_literals_in_ctor): Only recurse
if init is a CONSTRUCTOR.

* gcc.dg/pr54363.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@190898 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr54363.c [new file with mode: 0644]