re PR c/63567 (Linux kernel build error due to non-static initializers)
authorMarek Polacek <polacek@redhat.com>
Sun, 19 Oct 2014 16:47:35 +0000 (16:47 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sun, 19 Oct 2014 16:47:35 +0000 (16:47 +0000)
commit4435bb9232cf3a3ab015f7bc0f8dbe562bd8e0c8
treeea2bf947f9fb2a51c3da0346c6c1a18b7d9ff357
parentf4b0b1e3bb4dd4d89efdee99b5d032302a5f4717
re PR c/63567 (Linux kernel build error due to non-static initializers)

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

* gcc.dg/pr63567-3.c: New test.
* gcc.dg/pr63567-4.c: New test.

From-SVN: r216440
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr63567-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr63567-4.c [new file with mode: 0644]