[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 mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Sun Oct 19 16:47:35 2014 New Revision: 216440 URL: https://gcc.gnu.org/viewcvs?rev=216440root=gccview=rev Log: PR c/63567 * c-typeck.c

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|REOPENED|RESOLVED

[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 mpolacek at gcc dot gnu.org --- 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-18 Thread sasha.levin at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #8 from Sasha Levin sasha.levin at oracle dot com --- Created attachment 33756 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33756action=edit Preprocessed kernel/smpboot.c

[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 sasha.levin at oracle dot com --- 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 )

[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 mpolacek at gcc dot gnu.org --- Thanks. This fixes it (I need to write a proper testcase and test it). 2014-10-18 Marek Polacek pola...@redhat.com PR c/63567 * c-typeck.c (output_init_element):

[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 sasha.levin at oracle dot com --- 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-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 --- Comment #4 from Marek Polacek mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Fri Oct 17 21:02:54 2014 New Revision: 216416 URL: https://gcc.gnu.org/viewcvs?rev=216416root=gccview=rev Log: PR c/63567 * c-typeck.c

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[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 sasha.levin at oracle dot com changed: What|Removed |Added Status|RESOLVED|REOPENED

[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 pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[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 mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[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 mpolacek at gcc dot gnu.org --- (But warn with -pedantic.)