[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Marek Polacek changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #12 from Marek Polacek --- Author: mpolacek Date: Sun Oct 19 16:47:35 2014 New Revision: 216440 URL: https://gcc.gnu.org/viewcvs?rev=216440&root=gcc&view=rev Log: PR c/63567 * c-typeck.c (output_init_element): Allow initializ

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-18 Thread sasha.levin at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #11 from Sasha Levin --- That does the trick. Thanks! A different issue with the patch I've previously bisected came up, I'll open a different bug report for that.

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #10 from Marek Polacek --- Thanks. This fixes it (I need to write a proper testcase and test it). 2014-10-18 Marek Polacek PR c/63567 * c-typeck.c (output_init_element): Allow initializing objects with static storage

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-18 Thread sasha.levin at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #9 from Sasha Levin --- I've attached the preprocessed kernel/smpboot.c. The problem seems to be in line 24563: static struct mutex smpboot_threads_lock = { .count = { (1) } , .wait_lock = (spinlock_t ) { { .rlock = { .raw_lock = { {

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-18 Thread sasha.levin at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #8 from Sasha Levin --- Created attachment 33756 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33756&action=edit Preprocessed kernel/smpboot.c

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #7 from Marek Polacek --- Well, can you give me preprocessed source code then? Because the short testcase in Comment 1 is accepted now.

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-17 Thread sasha.levin at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Sasha Levin changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #4 from Marek Polacek --- Author: mpolacek Date: Fri Oct 17 21:02:54 2014 New Revision: 216416 URL: https://gcc.gnu.org/viewcvs?rev=216416&root=gcc&view=rev Log: PR c/63567 * c-typeck.c (digest_init): Allow initializing objec

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #3 from Marek Polacek --- (But warn with -pedantic.)

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c/63567] Linux kernel build error due to non-static initializers

2014-10-16 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|