[Bug c/40150] New: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:188
$ cc -std=gnu99 -O3 -fwhole-program -combine lv2log.i sim-common.i flight-computer.i physics.i pressure_sensor.i sensors.i resample-optimal.i coord.i mat.i vec.i isaac.i random.i normal.i normal_tab.i polynomial.i polynomial_tab.i -lm -o lv2log ziggurat/polynomial_tab.c: In function main_chute: ziggurat/polynomial_tab.c:776: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:188 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ cc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.3-8' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.3 (Debian 4.3.3-8) Tarball of preprocessed source attached. (Since the bug involves --combine -fwhole-program, it requires multiple source files, but I used -save-temps to turn them all into corresponding .i files.) - Josh Triplett -- Summary: internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:188 Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: josh at freedesktop dot org GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40150
[Bug c/40150] internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:188
--- Comment #1 from josh at freedesktop dot org 2009-05-14 18:00 --- Created an attachment (id=17868) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17868&action=view) Tarball of preprocessed source files to reproduce ICE. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40150
[Bug c/38019] New: Cannot use nested designated initializer with unnamed inner aggregate
I have an aggregate with this definition: typedef union vec3 { struct { double x, y, z; }; double component[3]; } vec3; Given this definition, I tried to write the following: static inline vec3 vec_add(vec3 a, vec3 b) { return (vec3) { .x = a.x + b.x, .y = a.y + b.y, .z = a.z + b.z, }; } GCC complained about this: vec.h: In function vec_add: vec.h:15: error: missing braces around initializer vec.h:15: error: (near initialization for (anonymous).) If I had given the nameless inner struct a name, such as "foo", I could have written: static inline vec3 vec_add(vec3 a, vec3 b) { return (vec3) { .foo.x = a.foo.x + b.foo.x, .foo.y = a.foo.y + b.foo.y, .foo.z = a.foo.z + b.foo.z, }; } So since the inner struct does not have a name, it seems reasonable to allow a designated initializer to omit the name. GCC has no problem unambiguously resolving the field reference a.x, so it seems like GCC should unambiguously resolve the designated initializer .x = expression. In case it helps: $ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1) -- Summary: Cannot use nested designated initializer with unnamed inner aggregate Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: josh at freedesktop dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38019
[Bug c/38019] Cannot use nested designated initializer with unnamed inner aggregate
--- Comment #3 from josh at freedesktop dot org 2008-11-05 17:19 --- Sigh. Yes, I get the same set of errors. I seem to have managed to copy and paste the wrong set of messages. This does indeed look like a duplicate of bug 10676. Marking as such. *** This bug has been marked as a duplicate of 10676 *** -- josh at freedesktop dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38019
[Bug c/10676] Using unnamed fields in initializers
--- Comment #6 from josh at freedesktop dot org 2008-11-05 17:19 --- *** Bug 38019 has been marked as a duplicate of this bug. *** -- josh at freedesktop dot org changed: What|Removed |Added CC||josh at freedesktop dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676
[Bug c/10676] Using unnamed fields in initializers
--- Comment #7 from josh at freedesktop dot org 2008-11-05 17:20 --- Still happens with GCC 4.3.2: $ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.3.2 (Debian 4.3.2-1) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676
[Bug c/10676] Using unnamed fields in initializers
--- Comment #8 from josh at freedesktop dot org 2008-11-05 17:21 --- How can I update the "last confirmed" date to today? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676