re PR c/63567 (Linux kernel build error due to non-static initializers)
authorMarek Polacek <polacek@redhat.com>
Fri, 17 Oct 2014 21:02:54 +0000 (21:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 17 Oct 2014 21:02:54 +0000 (21:02 +0000)
commit7278465e24b3d5a399ae2474f12870a91ba6af62
treee31df103a9c2a703683c07fab2d8a2abd2dc0a27
parentd83fa499b9895618ae8f63c004f3090b71d488ae
re PR c/63567 (Linux kernel build error due to non-static initializers)

PR c/63567
* c-typeck.c (digest_init): Allow initializing objects with static
storage duration with compound literals even in C99 and add pedwarn
for it.

* gcc.dg/pr61096-1.c: Change dg-error into dg-warning.
* gcc.dg/pr63567-1.c: New test.
* gcc.dg/pr63567-2.c: New test.

From-SVN: r216416
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr61096-1.c
gcc/testsuite/gcc.dg/pr63567-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr63567-2.c [new file with mode: 0644]