[Bug c/36839] struct with only anonymous unions plus flexible array member

2009-02-27 Thread vegard dot nossum at gmail dot com
--- Comment #4 from vegard dot nossum at gmail dot com 2009-02-27 20:32 --- Workaround: Install an empty dummy member between the union and the array, like this: struct x { union { int x; }; int _dummy[0]; // workaround int array

[Bug c/36839] struct with only anonymous unions plus flexible array member

2009-02-27 Thread vegard dot nossum at gmail dot com
--- Comment #3 from vegard dot nossum at gmail dot com 2009-02-27 20:27 --- I'm hitting this as well :-( [veg...@damson ~/programming 0] $ cat flexible-array-empty-struct.c struct x { union { int x; }; int array[]; }; [veg...@d

[Bug preprocessor/36357] New: Feature request: -Wrecursive-inclusion

2008-05-28 Thread vegard dot nossum at gmail dot com
Severity: enhancement Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: vegard dot nossum at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36357

[Bug target/34161] -Os produces 32-bit load from 16-bit variable

2008-02-05 Thread vegard dot nossum at gmail dot com
--- Comment #4 from vegard dot nossum at gmail dot com 2008-02-05 09:23 --- Is there a work-around, i.e. a command-line flag that turns _this particular_ kind of optimization off (without turning off all optimizations)? It seems that the behaviour is found in -O1 and -O2 as well, in