[Bug c/63567] Linux kernel build error due to non-static initializers
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 16 22:49:00 GMT 2014
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 reconfirmed| |2014-10-16
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I Just reported this to the mailing list:
https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01640.html
The reduced testcase that shows the difference between GNU 89 and GNU 11/99:
typedef struct {
volatile unsigned int lock;
} arch_rwlock_t;
typedef struct {
arch_rwlock_t raw_lock;
} rwlock_t;
static rwlock_t step_hook_lock = (rwlock_t) { .raw_lock = { 0 }, };
More information about the Gcc-bugs
mailing list