[Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
--- Comment #10 from flash at pobox dot com 2006-05-10 20:08 --- PalmSource bug #126750. -- flash at pobox dot com changed: What|Removed |Added CC||flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26881
[Bug target/27829] New: ICE/abort in shift_op, at config/arm/arm.c:7917 with asm from testsuite/gcc.dg/pr21255-2-mb.c
Calling an ARM-targeted GCC 3.4.4 on the testsuite file gcc.dg/pr21255-2-mb.c results in "internal compiler error: in shift_op, at config/arm/arm.c:7917". A slightly reduced version of the file is: double d; double f (void) { double r; asm ("mov %S1,%S0; mov %R1,%R0" : "=&r" (r) : "m" (d)); return r; } The relevant source seems to be: if (GET_CODE (XEXP (op, 1)) == REG || GET_CODE (XEXP (op, 1)) == SUBREG) *amountp = -1; else if (GET_CODE (XEXP (op, 1)) == CONST_INT) *amountp = INTVAL (XEXP (op, 1)); else abort (); CodeSourcery versions 3.4.4 (release) (CodeSourcery ARM 2005q3-2) and 2006q1/4.1.0 give a similar error. x86 GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2), and a checking=all build of 4.1.0 instead give an apparently reasonable rejection message: "error: invalid `asm': invalid operand code `R'". Here's the session; I'll attach the preprocessed source. 48> /opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/armv5te-softfloat-linux-gnu-gcc -v -save-temps /opt/Gcc-4.1.0-dist/gcc/testsuite/gcc.dg/pr21255-2-mb.c Reading specs from /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/specs Configured with: /home/kenneth.albanowski/projects/dev/open-source/crosstool/main/dist/build/armv5te-softfloat-linux-gnu/gcc-3.4.4-glibc-2.3.5/gcc-3.4.4/configure --target=armv5te-softfloat-linux-gnu --host=i686-host_pc-linux-gnu --prefix=/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu --with-float=soft --with-arch=armv5te --enable-cxx-flags=-march=armv5te --with-headers=/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/armv5te-softfloat-linux-gnu/include --with-local-prefix=/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/armv5te-softfloat-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long Thread model: posix gcc version 3.4.4 /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../libexec/gcc/armv5te-softfloat-linux-gnu/3.4.4/cc1 -E -quiet -v -iprefix /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/ -D__ARM_ARCH_5TE__ /opt/Gcc-4.1.0-dist/gcc/testsuite/gcc.dg/pr21255-2-mb.c -march=armv5te -msoft-float -o pr21255-2-mb.i ignoring duplicate directory "/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/include" ignoring duplicate directory "/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/../../../../armv5te-softfloat-linux-gnu/sys-include" ignoring duplicate directory "/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/../../../../armv5te-softfloat-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/include /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/../../../../armv5te-softfloat-linux-gnu/sys-include /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../lib/gcc/armv5te-softfloat-linux-gnu/3.4.4/../../../../armv5te-softfloat-linux-gnu/include End of search list. /home/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/../libexec/gcc/armv5te-softfloat-linux-gnu/3.4.4/cc1 -fpreprocessed pr21255-2-mb.i -quiet -dumpbase pr21255-2-mb.c -march=armv5te -msoft-float -auxbase pr21255-2-mb -version -o pr21255-2-mb.s GNU C version 3.4.4 (armv5te-softfloat-linux-gnu) compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8ubuntu2). GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62500 /opt/Gcc-4.1.0-dist/gcc/testsuite/gcc.dg/pr21255-2-mb.c: In function `f': /opt/Gcc-4.1.0-dist/gcc/testsuite/gcc.dg/pr21255-2-mb.c:19: internal compiler error: in shift_op, at config/arm/arm.c:7917 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- Summary: ICE/abort in shift_op, at config/arm/arm.c:7917 with asm from testsuite/gcc.dg/pr21255-2-mb.c Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com GCC target triplet: armv5te-softfloat-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27829
[Bug target/27829] ICE/abort in shift_op, at config/arm/arm.c:7917 with asm from testsuite/gcc.dg/pr21255-2-mb.c
--- Comment #1 from flash at pobox dot com 2006-05-31 01:57 --- Created an attachment (id=11542) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11542&action=view) Preprocessed source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27829
[Bug target/27829] ICE/abort in shift_op, at config/arm/arm.c:7917 with asm from testsuite/gcc.dg/pr21255-2-mb.c
--- Comment #3 from flash at pobox dot com 2006-05-31 02:14 --- It does happen in CodeSourcery's version of 4.1.0 (which I've filed noted above and with them). I don't have access to an ARM-targeted 3.4.5, 3.4.6, 4.0.x, nor a non-CodeSourcery 4.1.x. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27829
[Bug other/27851] New: Hour-long segfault with -O1 -g on gcc.dg/parm-impl-decl-1.c
The code below causes a checking=yes build of GCC 4.1.1 to report "Internal error: Segmentation fault (program cc1)" after more than an hour. (Ninety minutes in the session below; sixty-eight minutes the first time, on a faster and less loaded machine.) Likewise a checking=all build of GCC 4.1.0. A checking=all build of GCC 4.0.2 completes without error in a fifth of a second. foo (int __attribute__ ((__mode__ (vector_size(8 i) /* { dg-warning "warning: '__mode__' attribute ignored" } */ { } h (int (*p)[sizeof(i())]) { } The above code is Delta-reduced from the test suite file gcc/testsuite/gcc.dg/parm-impl-decl-1.c. This sounds reminiscent of bug 18239 or bug 16873, but those are supposedly fixed. Here are sessions; I'll attach the preprocessed file. First session, -O1, crash: 8> time /opt/gcc411/bin/gcc -O1 -g -c ../cpp/bugfiles/GCC_bugfiles/error/131357_parm-impl-decl-1_min.c ../cpp/bugfiles/GCC_bugfiles/error/131357_parm-impl-decl-1_min.c:1: warning: __mode__ attribute ignored gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See http://gcc.gnu.org/bugs.html> for instructions. real89m59.067s user44m27.227s sys 0m4.422s Second session, no optimization, -v -save-temps, no crash: 10> /opt/gcc411/bin/gcc -v -save-temps -O0 -g -c ../cpp/bugfiles/GCC_bugfiles/error/131357_parm-impl-decl-1_min.cUsing built-in specs. Target: i686-pc-linux-gnu Configured with: /third-party_source/gcc-4.1.1/configure --enable-checking=yes --prefix=/opt/gcc411 --enable-languages=c,c++ --with-comment=PalmSource checking=yes build by Flash Sheridan 5/31/06 on Kondal Thread model: posix gcc version 4.1.1 /home/opt/gcc411/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 -E -quiet -v -iprefix /home/opt/gcc411/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/ ../cpp/bugfiles/GCC_bugfiles/error/131357_parm-impl-decl-1_min.c -mtune=pentiumpro -fworking-directory -O0 -fpch-preprocess -o 131357_parm-impl-decl-1_min.i ignoring nonexistent directory "/home/opt/gcc411/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/opt/gcc411/lib/gcc/i686-pc-linux-gnu/4.1.1/include" ignoring nonexistent directory "/opt/gcc411/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/opt/gcc411/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/include /usr/local/include /opt/gcc411/include /usr/include End of search list. /home/opt/gcc411/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 -fpreprocessed 131357_parm-impl-decl-1_min.i -quiet -dumpbase 131357_parm-impl-decl-1_min.c -mtune=pentiumpro -auxbase 131357_parm-impl-decl-1_min -g -O0 -version -o 131357_parm-impl-decl-1_min.s GNU C version 4.1.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8ubuntu2). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: e8d2a74fbd215574b08a58c63cf2b2c4 ../cpp/bugfiles/GCC_bugfiles/error/131357_parm-impl-decl-1_min.c:1: warning: __mode__ attribute ignored as -V -Qy -o 131357_parm-impl-decl-1_min.o 131357_parm-impl-decl-1_min.s GNU assembler version 2.15 (i386-linux) using BFD version 2.15 --- PalmSource bug 131357 -- Summary: Hour-long segfault with -O1 -g on gcc.dg/parm-impl-decl- 1.c Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27851
[Bug other/27851] Hour-long segfault with -O1 -g on gcc.dg/parm-impl-decl-1.c
--- Comment #1 from flash at pobox dot com 2006-06-01 02:30 --- Created an attachment (id=11562) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11562&action=view) Preprocessed Delta-reduced source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27851
[Bug c++/27881] New: Memory exhausted with -finline-functions on testsuite file alias3.C
Compiling the GCC testsuite file alias3.C with -O1 -finline-functions exhausts memory on checking=all or =yes builds of GCC 4.1.1, on Ubuntu 5.04 with virtual memory limited to 500M. Roughly similar behavior on Mac OSX 10.4.6 with a checking=all build of GCC 4.1.0, though ulimit is broken on the Mac, so I had to kill the process manually. A checking=all build of GCC 4.0.2 compiles without error. The symptoms are similar to my PR26774, but that's fixed in 4.1.1, and didn't require optimization. Here's the Delta-reduced file: namespace A{ struct X{}; void f(X&); namespace a_very_long_namespace_name{ } } namespace B = A; void B::f(A::X& x) { B::f(x); f(x); } Here's the session; I'll attach the preprocessed file. 131> /opt/gcc411-chk-all/bin/gcc -v -save-temps -c -O1 -finline-functions ../cpp/bugfiles/GCC_bugfiles/noerror/131415_alias3_min.cpp Using built-in specs. Target: i686-pc-linux-gnu Configured with: /third-party_source/gcc-4.1.1/configure --enable-checking=all --prefix=/opt/gcc411-chk-all/ --enable-languages=c,c++ --with-comment=PalmSource checking=all build by Flash Sheridan 5/31/06 on Kondal Thread model: posix gcc version 4.1.1 /home/opt/gcc411-chk-all/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -E -quiet -v -iprefix /home/opt/gcc411-chk-all/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/ -D_GNU_SOURCE ../cpp/bugfiles/GCC_bugfiles/noerror/131415_alias3_min.cpp -mtune=pentiumpro -finline-functions -O1 -fpch-preprocess -o 131415_alias3_min.ii ignoring nonexistent directory "/home/opt/gcc411-chk-all/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/opt/gcc411-chk-all//lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1" ignoring duplicate directory "/opt/gcc411-chk-all//lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/i686-pc-linux-gnu" ignoring duplicate directory "/opt/gcc411-chk-all//lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/backward" ignoring duplicate directory "/opt/gcc411-chk-all//lib/gcc/i686-pc-linux-gnu/4.1.1/include" ignoring nonexistent directory "/opt/gcc411-chk-all//lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/opt/gcc411-chk-all/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1 /home/opt/gcc411-chk-all/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/i686-pc-linux-gnu /home/opt/gcc411-chk-all/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../include/c++/4.1.1/backward /home/opt/gcc411-chk-all/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/include /usr/local/include /opt/gcc411-chk-all//include /usr/include End of search list. /home/opt/gcc411-chk-all/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -fpreprocessed 131415_alias3_min.ii -quiet -dumpbase 131415_alias3_min.cpp -mtune=pentiumpro -auxbase 131415_alias3_min -O1 -version -finline-functions -o 131415_alias3_min.s GNU C++ version 4.1.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8ubuntu2). GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0 Compiler executable checksum: 0017ab69adc149664c23a10e9b6eba83 virtual memory exhausted: Cannot allocate memory --- http://pobox.com/~flash Quality Lead for Compilers and Debuggers PalmSource, Inc. Tools Quality Assurance PalmSource bug 131415 -- Summary: Memory exhausted with -finline-functions on testsuite file alias3.C Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27881
[Bug c++/27881] Memory exhausted with -finline-functions on testsuite file alias3.C
--- Comment #1 from flash at pobox dot com 2006-06-03 02:37 --- Created an attachment (id=11583) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11583&action=view) Preprocessed Delta-reduced source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27881
[Bug rtl-optimization/24075] New: Destructor called with wrong argument after exception with -fcse-follow-jumps -O1
pt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1/../../../../include/c++/3.4.1/arm-softfloat-linux-gnu /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1/include /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/sys-include /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/include End of search list. /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../libexec/gcc/arm- softfloat-linux-gnu/3.4.1/cc1plus -fpreprocessed 110057_eh_case22B.ii -quiet -dumpbase 110057_eh_case22B.cpp -msoft-float -auxbase 110057_eh_case22B -O1 -version -fcse-follow-jumps -o 110057_eh_case22B.s GNU C++ version 3.4.1 (arm-softfloat-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=90 --param ggc-min-heapsize=113332 /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/bin/as -mfpu=softfpa -o 110057_eh_case22B.o 110057_eh_case22B.s /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../libexec/gcc/arm- softfloat-linux-gnu/3.4.1/collect2 --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.2 -X -m armelf_linux -p -o /exported/device_root/opt/palmos/tests/compiler/tmp/ 110057_eh_case22B_O1_fcse-follow-jumps.kj /home/opt/crosstool/arm-softfloat-linux-gnu/ gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat-linux-gnu/3.4.1/../../../../arm-softfloat-linux- gnu/lib/crt1.o /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/ arm-softfloat-linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/lib/crti.o /home/opt/crosstool/arm- softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat-linux-gnu/3.4.1/crtbegin.o - L/home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat- linux-gnu/3.4.1 -L/home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/ gcc -L/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/arm-softfloat-linux- gnu/3.4.1 -L/home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/ arm-softfloat-linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/lib -L/opt/crosstool/arm-softfloat- linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/arm-softfloat-linux-gnu/3.4.1/../../../../arm-softfloat- linux-gnu/lib 110057_eh_case22B.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /home/opt/ crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/arm-softfloat-linux-gnu/ 3.4.1/crtend.o /home/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/../lib/gcc/ arm-softfloat-linux-gnu/3.4.1/../../../../arm-softfloat-linux-gnu/lib/crtn.o -- Summary: Destructor called with wrong argument after exception with -fcse-follow-jumps -O1 Product: gcc Version: 3.4.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: arm-softfloat-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24075
[Bug rtl-optimization/24075] Destructor called with wrong argument after exception with -fcse-follow-jumps -O1
--- Additional Comments From flash at pobox dot com 2005-09-27 04:38 --- Created an attachment (id=9816) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9816&action=view) Preprocessed source file PalmSource bug #110057. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24075
[Bug debug/24304] New: Test suite file 20010209-1.c with -g1 gives gen_subprogram_die, at dwarf2out.c:10857
Compiling the test suite file 20010209-1.c with -g1 gives "internal compiler error: in gen_subprogram_die, at dwarf2out.c:10857". This sounds a lot like bug 16035, but the line number is different (10824 with my build), and that bug requires -g -O, whereas this one requires -g1, and does not require optimization. Here's the session: 58> /opt/gcc343-chk-y/bin/gcc -g1 -c -v ../c/error/GPL/3-3/20010209-1.c Reading specs from /home/opt/gcc343-chk-y/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/specs Configured with: /opt/src/GCC/gcc-3.4.3/configure --with-comment=Check=yes build of non-cross 3.4.3 by Flash Sheridan 9/12/05 with distcc --enable-version-specific-runtime-libs --enable-checking=yes --prefix=/opt/gcc343-chk-y --enable-languages=c,c++ Thread model: posix gcc version 3.4.3 /home/opt/gcc343-chk-y/bin/../libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1 -quiet -v -iprefix /home/opt/gcc343-chk-y/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/ ../c/error/GPL/3-3/20010209-1.c -quiet -dumpbase 20010209-1.c -mtune=pentiumpro -auxbase 20010209-1 -g1 -version -o /tmp/ccYCdkBa.s ignoring nonexistent directory "/home/opt/gcc343-chk-y/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/opt/gcc343-chk-y/lib/gcc/i686-pc-linux-gnu/3.4.3/include" ignoring nonexistent directory "/opt/gcc343-chk-y/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/opt/gcc343-chk-y/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/include /usr/local/include /opt/gcc343-chk-y/include /usr/include End of search list. GNU C version 3.4.3 (i686-pc-linux-gnu) compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8ubuntu2). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../c/error/GPL/3-3/20010209-1.c: In function `foo': ../c/error/GPL/3-3/20010209-1.c:13: internal compiler error: in gen_subprogram_die, at dwarf2out.c:10857 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. PalmSource bug 110511. -- Summary: Test suite file 20010209-1.c with -g1 gives gen_subprogram_die, at dwarf2out.c:10857 Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24304
[Bug debug/24304] Test suite file 20010209-1.c with -g1 gives gen_subprogram_die, at dwarf2out.c:10857
--- Comment #1 from flash at pobox dot com 2005-10-11 02:31 --- Created an attachment (id=9959) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9959&action=view) 20010209-1.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24304
[Bug rtl-optimization/24322] New: Segmentation fault or out of memory compiling FFMpeg snow.c at -O3 for ARM
C_bugfiles/noerror/warn/110517_snow_min.i -quiet -dumpbase 110517_snow_min.i -auxbase 110517_snow_min -O3 -version -o /tmp/cc6Nmeji.s GNU C version 3.4.3 (release) (CodeSourcery ARM Q1B 2005) (arm-none-linux-gnueabi) compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7). GGC heuristics: --param ggc-min-expand=90 --param ggc-min-heapsize=113332 ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:7: warning: `__transparent_union__' attribute ignored ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:40: warning: "struct __gconv_step_data" declared inside parameter list ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:40: warning: its scope is only this definition or declaration, which is probably not what you want ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:40: warning: "struct __gconv_step" declared inside parameter list ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:42: warning: "struct __gconv_step" declared inside parameter list ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i: In function `predict_slice_buffered': ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:596: warning: passing arg 6 of `add_yblock_buffered' discards qualifiers from pointer target type ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i: In function `dequantize_slice_buffered': ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:644: warning: pointer/integer type mismatch in conditional expression ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i: In function `ff_spatial_idwt_init': ../cpp/bugfiles/GCC_bugfiles/noerror/warn/110517_snow_min.i:406: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. Send email to [EMAIL PROTECTED] for instructions. -- Summary: Segmentation fault or out of memory compiling FFMpeg snow.c at -O3 for ARM Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com GCC target triplet: arm-softfloat-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24322
[Bug rtl-optimization/24322] Segmentation fault or out of memory compiling FFMpeg snow.c at -O3 for ARM
--- Comment #1 from flash at pobox dot com 2005-10-12 01:57 --- Created an attachment (id=9974) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9974&action=view) 110517_snow_min.i PalmSource bug 110517. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24322
[Bug c/19592] internal compiler error: Segmentation fault when compiling snow.c from the ffmpeg project
--- Comment #3 from flash at pobox dot com 2005-10-12 01:59 --- See bug 24322 against gcc-3.4.4-glibc-2.3.5/arm-softfloat-linux-gnu. -- flash at pobox dot com changed: What|Removed |Added CC||flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19592
[Bug target/12133] Reload abort in simd-3.c
--- Comment #6 from flash at pobox dot com 2005-10-14 01:23 --- PalmSource bug 110648 -- flash at pobox dot com changed: What|Removed |Added CC||flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12133
[Bug other/22320] New: -ftree-dominator-opts documentation is the same as -ftree-dce
The GCC 4.0.0 documentation, page 71 in the PostScript version, <http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Optimize-Options.html#Optimize-Options> in the HTML version, says the following: -ftree-dce Perform dead code elimination (DCE) on trees. This flag is enabled by default at -O and higher. -ftree-dominator-opts Perform dead code elimination (DCE) on trees. This flag is enabled by default at -O and higher. Dominator options seem to be different from dead code, so presumably these are different. Alternatively, if they have the same behavior under different names, that should be noted explicitly, as it is elsewhere for such options. -- Summary: -ftree-dominator-opts documentation is the same as - ftree-dce Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: GCC 4.0.0 documentation GCC host triplet: n/a GCC target triplet: n/a http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22320
[Bug target/21613] -fpic only: internal compiler error: in extract_insn, at recog.c:2083 (20010107-1.c:6)
--- Additional Comments From flash at pobox dot com 2005-07-14 23:46 --- PalmSource bug #104818. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21613
[Bug c++/22508] New: Segmentation fault or EXC_BAD_ACCESS with modified Eckel sample code
The command below results in "internal compiler error: Segmentation fault" with the checking- enabled version of GCC 4.0.1 on Suse Linux 9.2. It also crashes with Apple GCC 4.0.0 on Mac OSX 10.4.2. GCC 3.3.4 on Suse rejects the code without crashing, as does CodeSourcery arm-none-linux- gnueabi-g++ 3.4.3, our local version of arm-softfloat-linux-gnu 3.4.1, and (on OSX) Apple's GCC 3.3 and my own build of 3.4.0. /opt/gcc401chk/bin/g++ -c ../cpp/bugfiles/error/EckelRob_104822.ii ../jammed/Barney/eckel.cpp: In function std::string EckelCode::FramisTest(): ../jammed/Barney/eckel.cpp:2039: internal compiler error: Segmentation fault With the Apple version of GCC 4.0.0, it gives a crash dialog (with a Report button which doesn't work) with the following text: The application cc1plus quit unexpectedly EXC_BAD_ACCESS (0x1) KERN_PROTECTION_FAILURE (0X2) at 0xc Thread 0 Crashed: 0 0x1000 + 457016 I'll attach the preprocessed source. It was copied by Rob Stevenson, a former PalmSource employee, from volume one of Bruce Eckel's _Thinking in C++_. Here's the relevant function: string FramisTest() { stringstream ss2; Framis* f[Framis::psize]; try { for(int i = 0; i < Framis::psize; i++) f[i] = new Framis; new Framis; // Out of memory } catch(bad_alloc) { ss2 << "Out of memory!" << endl; } delete f[10]; f[10] = 0; // Use released memory: Framis* x = new Framis; delete x; for(int j = 0; j < Framis::psize; j++){ ss2 << f[j]->ReturnStrStream() ; delete f[j]; // Delete f[10] OK } return ss2.str() ; } ///:~ __ Configurations: Suse: 62> /opt/gcc401chk/bin/g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 63> uname -a Linux thrallis 2.6.8-24.16-default #1 Thu Jun 2 12:09:57 UTC 2005 i686 i686 i386 GNU/Linux Macintosh: > gcc -v Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure --disable-checking --prefix=/ usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^ [cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc- apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061) 112> uname -a Darwin klono.local 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc PalmSource bug #104822 --- Flash Sheridan http://pobox.com/~flash Quality Lead for Compilers and Debuggers PalmSource, Inc. Tools Quality Management -- Summary: Segmentation fault or EXC_BAD_ACCESS with modified Eckel sample code Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22508
[Bug c++/22508] Segmentation fault or EXC_BAD_ACCESS with modified Eckel sample code
--- Additional Comments From flash at pobox dot com 2005-07-16 03:47 --- Created an attachment (id=9287) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9287&action=view) Preprocessed source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22508
[Bug driver/22600] New: Exit code should be different from 1 for internal compiler error
Steps: 93> /opt/gcc401chk/bin/g++ -pass-exit-codes ../cpp/bugfiles/error/EckelRob_104822.ii ../jammed/Barney/eckel.cpp:2039: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. 94> echo $? [This uses my file for bug 22508.] Actual Result: 1 Expected Result: Anything but 1 or 0. For recursive crash testing, the return code for an internal compiler error should be distinguishable from that for correct rejection of incorrect code. As a workaround, I've been checking the output for the presence and absence of various patterns, but this is inelegant and subject to error. PalmSource bug 50522. -- Summary: Exit code should be different from 1 for internal compiler error Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22600
[Bug c++/22603] New: internal compiler error: in pop_binding, at cp/name-lookup.c:380
The invalid code below results in "internal compiler error: in pop_binding, at cp/name-lookup.c:380" with a checking version of GCC 4.0.1. Does not happen with GCC 3.3.4. class NameOne : public static_small_value { inline NameOne(T v) { } { }; template class NameTwo : private NameThree { void NameFour(const struct NameFive &cache); This code is a greatly-reduced (and anonymized) excerpt, found by Daniel Wilkerson's Delta, from some real PalmSource code; I'm not sure it makes any sense at all. The original code seemed to give a different compiler error, which I'll try to file separately; though it involves 16K lines of proprietary code, so it may have to wait for our CodeSourcery support agreement. === Session: 117> /opt/gcc401chk/bin/g++ -v /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/ 104911_HtmlView_min.ii Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed /Projects/ PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii -quiet -dumpbase 104911_HtmlView_min.ii -mtune=pentiumpro -auxbase 104911_HtmlView_min -version -o /tmp/ ccKTKYmH.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:2: error: expected class-name before { token /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:3: error: expected `)' before v /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:5: error: expected unqualified-id before { token /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:9: error: expected class-name before { token /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:10: error: expected `}' at end of input /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:10: error: expected unqualified-id at end of input /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/104911_HtmlView_min.ii:10: internal compiler error: in pop_binding, at cp/name-lookup.c:380 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. PalmSource bug 104911 -- Summary: internal compiler error: in pop_binding, at cp/name- lookup.c:380 Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22603
[Bug c++/22603] internal compiler error: in pop_binding, at cp/name-lookup.c:380
--- Additional Comments From flash at pobox dot com 2005-07-22 02:32 --- Created an attachment (id=9326) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9326&action=view) 104911_HtmlView_min.ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22603
[Bug c++/22603] internal compiler error: in pop_binding, at cp/name-lookup.c:380
--- Additional Comments From flash at pobox dot com 2005-07-22 02:35 --- This sounds like bugs 9777 and 5402, but those were supposedly fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22603
[Bug c++/22604] New: "internal compiler error: Segmentation fault" with invalid nested classes
The invalid code below results in "internal compiler error: Segmentation fault" with a checking version of GCC 4.0.1. Does not happen with GCC 3.3.4 or Apple GCC 4.0.0. Like the code for bug 22603, this is a greatly-reduced and anonymized excerpt, found by Daniel Wilkerson's Delta, from a real PalmSource file. (This reduction was found by looking for a segfault; the previous reduction looked for any compiler error.) I don't think this is the same bug as my 22508, since that one also happened with Apple GCC 4.0.0. It doesn't sound to me like 21975 or 22441 either. class NameOne; class NameTwo : virtual public SAtom { virtual NameOne* NameThree(); }; class NameFour : virtual public NameFive { class NameOne : public NameTwo { virtual NameOne* NameThree(); == Session: 125> /opt/gcc401chk/bin/g++ -v /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/ BBinder_segfault.ii Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed /Projects/ PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii -quiet -dumpbase BBinder_segfault.ii -mtune=pentiumpro -auxbase BBinder_segfault -version -o /tmp/ccuEkHiJ.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii:3: error: expected class-name before { token /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii:7: error: expected class-name before { token /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii:10: error: expected `}' at end of input /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii:10: error: invalid covariant return type for virtual NameFour::NameOne* NameFour::NameOne::NameThree() /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii:4: error: overriding virtual NameOne* NameTwo::NameThree() /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/error/BBinder_segfault.ii:9: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. Like bug 22603, this is tracked by PalmSouce bug 104911, though I suspect it's different. -- Summary: "internal compiler error: Segmentation fault" with invalid nested classes Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
[Bug c++/22604] "internal compiler error: Segmentation fault" with invalid nested classes
--- Additional Comments From flash at pobox dot com 2005-07-22 03:38 --- Created an attachment (id=9327) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9327&action=view) BBinder_segfault.ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
[Bug driver/22600] Exit code should be different from 1 for internal compiler error
--- Additional Comments From flash at pobox dot com 2005-07-22 16:04 --- Looking for a string pattern in the output leaves you vulnerable to correctly-rejected files which happen to generate that pattern in an error message. That's probably less of an issue with GCC's hand- crafted test code, but it was a real problem with the PalmSource compiler (which admittedly has more verbose error reporting) when doing random crash-testing. Our compiler prints the line it's complaining about, so a comment about an internal error could give a false positive. GCC may not have that problem, but it might still get fooled by a file name. More generally, unless you know all the possible error strings, you might miss an error. So I also looked for the absence of the normal correct-rejection strings, which is also subject to false positives, until you get them all. OTOH, if you know that returning with exit code 1 actually means a normal rejection, then you don't get annoyed with tricky stuff like (in our case, at least) files named after error signals. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22600
[Bug driver/22600] Exit code should be different from 1 for internal compiler error
--- Additional Comments From flash at pobox dot com 2005-07-23 05:10 --- Thanks very much, patch 9330 works well (though I had to apply the second change in gcc.c manually, since someone changed commands[i].prog to commands[j].prog later than my copy of the 4.0.1 sources). I've added a check in my recursive crash-tester for a normal exit code with abnormal error text, or missing normal rejection text. It's encountered a couple dozen internal error so far, and they all returned something other than 0 or 1. I'm running it on our source tree over the weekend. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22600
[Bug debug/20161] [4.0/4.1 Regression] ICE with dwarf for incomplete element type argument
--- Additional Comments From flash at pobox dot com 2005-07-26 04:09 --- PalmSource bug 105106. Happens on code which is supposedly valid, but I haven't verified that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20161
[Bug c++/23089] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
The session below, with the file below, gives "internal compiler error: in int_mode_for_mode, at stor- layout.c:251". The error only occurs at -O1 or higher. This sounds like bug 17407, but that's supposedly fixed and didn't require optimization. The file is an odd-looking Delta reduction of a much larger file, which was originally supposed to be valid code; but I haven't gotten the include paths set up properly yet. File: { }; class NameOne; { { { { { } { } } } } } struct NameTwo::private_data { struct offsets { }; }; class NameThree : public NameFour { NameThree( NameOne frame, const char *name, NameFive *target, float min, float max, orientation direction); }; NameThree::NameThree(NameOne frame, const char *name, NameFive *target, float minv, float maxv, orientation direction) : NameFour(frame, name, target, minv, maxv, direction) Session: 9> /opt/gcc401chk/bin/g++ -v -O1 ../cpp/bugfiles/GCC_bugfiles/error/105107_OutlineView_min.ii Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/ GCC_bugfiles/error/105107_OutlineView_min.ii -quiet -dumpbase 105107_OutlineView_min.ii - mtune=pentiumpro -auxbase 105107_OutlineView_min -O1 -version -o /tmp/cctwDCac.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../cpp/bugfiles/GCC_bugfiles/error/105107_OutlineView_min.ii:28: internal compiler error: in int_mode_for_mode, at stor-layout.c:251 Please submit a full bug report, -- Summary: internal compiler error: in int_mode_for_mode, at stor- layout.c:251 at -O1 Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23089
[Bug c++/23089] internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1
--- Additional Comments From flash at pobox dot com 2005-07-27 02:30 --- Created an attachment (id=9370) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9370&action=view) 105107_OutlineView_min.ii Delta-reduced file. PalmSource bug 105107. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23089
[Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
--- Additional Comments From flash at pobox dot com 2005-07-28 03:15 --- Here's another segfault, originally PalmSource bug 105158, but after Delta reduction it looked similar: class nameOne : public nameTwo, public nameThree, public nameFour, public nameFive, public nameSix { void nameSeven(const nameEight &name, const nameNine & icon); virtual void nameSeven(const nameEight& name, const nameTen &icon); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
[Bug c++/23118] New: Another segmentation fault after improper overloading (BootView)
The source below gives a segfault on GCC 4.0.1. Spun off from Bugzilla Bug 22604, per Andrew Pinski, since he said it was a separate issue with the same symptom. PalmSource bug 105158. Source: class nameOne : public nameTwo, public nameThree, public nameFour, public nameFive, public nameSix { void nameSeven(const nameEight &name, const nameNine & icon); virtual void nameSeven(const nameEight& name, const nameTen &icon); Session: /opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/ GCC_bugfiles/error/105158_BootView_min.ii -quiet -dumpbase 105158_BootView_min.ii - mtune=pentiumpro -auxbase 105158_BootView_min -version -o /tmp/cc1SYkYS.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before , token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before , token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before , token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:1: error: expected class-name before , token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:2: error: expected class-name before { token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:3: error: expected , or ... before & token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:3: error: ISO C++ forbids declaration of nameEight with no type ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: expected , or ... before & token ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: ISO C++ forbids declaration of nameEight with no type ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: virtual void nameOne::nameSeven(int) and void nameOne::nameSeven(int) cannot be overloaded ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:4: error: expected `}' at end of input ../cpp/bugfiles/GCC_bugfiles/error/105158_BootView_min.ii:2: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- Summary: Another segmentation fault after improper overloading (BootView) Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23118
[Bug c++/23118] Another segmentation fault after improper overloading (BootView)
--- Additional Comments From flash at pobox dot com 2005-07-28 19:58 --- Created an attachment (id=9381) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9381&action=view) 105158_BootView_min.ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23118
[Bug c++/23125] New: OpenBSD's zic.c causes g++ but not gcc to segfault
The OpenBSD file zic.c causes g++ 4.0.1 to segfault, though plain gcc 4.0.1 does not. The plainest way to reproduce this is to get the OpenBSD version from <http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/time/zic.c?rev=1.24&content- type=text/plain>, but I'll attach a Delta-reduced version of our modified copy. g++ 3.3.4 rejects it without crashing, but with "confused by earlier errors, bailing out," so this is presumably invalid code, though it seems to be a popular file. (Perhaps I should add OpenBSD to section I of my article :-) I'm not sure if this is the same as my two other segfault bugs: Running the --enable-checking version under GDB fails to catch the segfault, so I couldn't get a stacktrace. (I'm trying to build an -- enable-checking=all version, but it's taken more than twenty-four hours so far.) Session: 74> /opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/105198_zic_min.c Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -quiet -v -D_GNU_SOURCE ../cpp/ bugfiles/GCC_bugfiles/error/105198_zic_min.c -quiet -dumpbase 105198_zic_min.c - mtune=pentiumpro -auxbase 105198_zic_min -version -o /tmp/ccGy60bj.s ignoring nonexistent directory "/opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../i686-pc- linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1 /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/i686-pc-linux-gnu /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward /usr/local/include /opt/gcc401chk/include /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/include /usr/include End of search list. GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../cpp/bugfiles/GCC_bugfiles/error/105198_zic_min.c:1: error: expected unqualified-id before { token ../cpp/bugfiles/GCC_bugfiles/error/105198_zic_min.c:31: error: expected unqualified-id before { token ../cpp/bugfiles/GCC_bugfiles/error/105198_zic_min.c:36: error: expected unqualified-id before { token ../cpp/bugfiles/GCC_bugfiles/error/105198_zic_min.c:37: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. Delta-reduced file: { if (sscanf(cp, scheck(cp, "%d"), &year) != 1) { } while (j != year) { if (year > j) { } } while (j != month) { } { if (strcmp(cp, "") == 0) { /* infile() turns "-" into "" */ } } for (i = 0; i < zonecount; ++i) { if (zp->z_nrules == 0) { if (usestart) { if (useuntil) { if (k < 0 || jtime < ktime) { } } if (usestart) { if (ktime < starttime) { } } } } if (usestart) { } } } { (timecnt == 1 && attypes[0].at < min_time)) { } } int a; { } register const char * bp; PalmSource bug 105198. -- Summary: OpenBSD's zic.c causes g++ but not gcc to segfault Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23125
[Bug c++/23125] OpenBSD's zic.c causes g++ but not gcc to segfault
--- Additional Comments From flash at pobox dot com 2005-07-29 03:25 --- Created an attachment (id=9384) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9384&action=view) Delta-reduced version of zic.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23125
[Bug c++/23125] OpenBSD's zic.c causes g++ but not gcc to segfault
--- Additional Comments From flash at pobox dot com 2005-07-29 04:34 --- Error message from an --enable-checking=all build: /Projects/PlatformTools/compilerChain/tests/cpp/bugfiles/GCC_bugfiles/error /105198_zic_min.c:37: internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'i' (rtx reg) in assemble_variable, at varasm.c:1588 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23125
[Bug debug/20161] [4.0/4.1 Regression] ICE with dwarf for incomplete element type argument
--- Additional Comments From flash at pobox dot com 2005-08-02 22:05 --- The patch looks good on the first of our files to elicit this bug. The following line causes the ICE; the line after does not. /opt2/gcc401-chkall-9330/bin/g++ -g ../cpp/bugfiles/GCC_bugfiles/error/105106_jdinput.c /opt2/gcc401-chkall-8277-9330/bin/g++ -g ../cpp/bugfiles/GCC_bugfiles/error/105106_jdinput.c I'll crash test the checking=yes version overnight. (Note that so far I'm only crash-testing; I'm not yet doing correctness testing.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20161
[Bug debug/20161] [4.0/4.1 Regression] ICE with dwarf for incomplete element type argument
--- Additional Comments From flash at pobox dot com 2005-08-04 02:43 --- The patch looked good in overnight crash-testing over five thousand files in our source tree. I used checking=yes version with patches 8277 and 9330. I'm afraid last night's results aren't directly comparable to my last run with an unpatched g++, but the internal errors were a small subset of the unpatched version, 4 vs 30. (Two of those four were bug 23125, one was 23089, and I'll file the other one.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20161
[Bug c/23223] New: Segfault part 3, after typedef
The following code causes a segfault: typedef int32_t (*ProcPtr)(); void Dispatcher(int32_t startCode) { if (rcvArgs.bytesReceived < This doesn't look to me like either bug 22604 or 23118. It's a Delta-reduction from a file for a different bug (internal compiler error: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246) which I'm still working on. Here's the session: 251> /opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/ 105393_segfault_CertMgrDispatcher_min.i Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/ GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i -quiet -dumpbase 105393_segfault_CertMgrDispatcher_min.i -mtune=pentiumpro -auxbase 105393_segfault_CertMgrDispatcher_min -version -o /tmp/cc7GwodY.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: ISO C++ forbids declaration of int32_t with no type ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: typedef int32_t is initialized (use __typeof__ instead) ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: ProcPtr was not declared in this scope ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:1: error: expected , or ; before ( token ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i: In function void Dispatcher(int32_t): ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: rcvArgs was not declared in this scope ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected primary-expression at end of input ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected `)' at end of input ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected primary-expression at end of input ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: error: expected `;' at end of input ../cpp/bugfiles/GCC_bugfiles/error/105393_segfault_CertMgrDispatcher_min.i:4: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- Summary: Segfault part 3, after typedef Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23223
[Bug c/23223] Segfault part 3, after typedef
--- Additional Comments From flash at pobox dot com 2005-08-04 03:28 --- Created an attachment (id=9426) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9426&action=view) 105393_segfault_CertMgrDispatcher_min.i PalmSource bug 105393. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23223
[Bug c/23225] New: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
The code below gives the following error: internal compiler error: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 This sounds like bug 18177, but that was supposedly fixed in 4.0.0. PalmSource bug 105393. Here's the code: typedef int32_t (*ProcPtr)();void Dispatcher(int32_t startCode) (__builtin_offsetof (ArgsType, largeMsgLen) + sizeof(Args.largeMsgLen))) "__builtin_offsetof" is necessary for the crash, and is an artifact of preprocessing. This is a Delta- reduction of a larger file which fails without error under g++ 3.3.4, presumably correctly, due to a missing include file. Here's the session: 93> /opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/ 105393_CertMgrDispatcher_min.i Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/ GCC_bugfiles/error/105393_CertMgrDispatcher_min.i -quiet -dumpbase 105393_CertMgrDispatcher_min.i -mtune=pentiumpro -auxbase 105393_CertMgrDispatcher_min - version -o /tmp/cczS74RP.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: ISO C++ forbids declaration of âint32_tâ with no type ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: typedef âint32_tâ is initialized (use __typeof__ instead) ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: âProcPtrâ was not declared in this scope ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:1: error: expected â,â or â ;â before â(â token ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: error: function âvoid Dispatcher(int32_t)â is initialized like a variable ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: error: expected type-specifier before âArgsTypeâ ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: error: expected `,' before â ArgsTypeâ ../cpp/bugfiles/GCC_bugfiles/error/105393_CertMgrDispatcher_min.i:3: internal compiler error: tree check: expected class âtypeâ, have âexceptionalâ (error_mark) in build_pointer_type_for_mode, at tree.c:4246 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. -- Summary: tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246 Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23225
[Bug c/23225] tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246
--- Additional Comments From flash at pobox dot com 2005-08-04 04:06 --- Created an attachment (id=9427) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9427&action=view) 105393_CertMgrDispatcher_min.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23225
[Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
The file below gives "internal compiler error: in cp_parser_template_id, at cp/parser.c:8564". It's a Delta-reduced version of a preprocessed version of the Boost file remote_call_manager.cpp, but missing some header files. class remote_call_manager: private noncopyable { template static R execute_now(function &rFunctor); inline void remote_call_manager::execute_now(function &rFunctor) This sounds like bug 9781, among others, but that's supposedly fixed. Here's the session: 312> /opt/gcc401chk/bin/g++ -v ../cpp/bugfiles/GCC_bugfiles/error/ 105390_remote_call_manager_min.ii Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/ GCC_bugfiles/error/105390_remote_call_manager_min.ii -quiet -dumpbase 105390_remote_call_manager_min.ii -mtune=pentiumpro -auxbase 105390_remote_call_manager_min -version -o /tmp/ccsSRpV5.s GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:2: error: expected class-name before { token ../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: function was not declared in this scope ../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: expected primary- expression before > token ../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: rFunctor was not declared in this scope ../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: template declaration of R remote_call_manager::execute_now ../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:5: internal compiler error: in cp_parser_template_id, at cp/parser.c:8564 -- Summary: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23307
[Bug c++/23307] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
--- Additional Comments From flash at pobox dot com 2005-08-10 05:08 --- Created an attachment (id=9458) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9458&action=view) 105390_remote_call_manager_min.ii PalmSource bug 105390. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23307
[Bug c++/22604] [4.0/4.1 Regression] ICE after invalid covariant return
--- Additional Comments From flash at pobox dot com 2005-08-12 01:26 --- The patch looks good. A checking=yes build, with patches 20161-8277, 22508-2005-08-00326, 22600-9330, and 22604-2005-08-00334, rejected the file BBinder_segfault.ii without an ICE. (A checking=all build is still building.) A run of 'make check' didn't report any unexpected errors. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22604
[Bug c++/23370] New: No error at -O1 for static const class member passed by reference
The invalid code below gives an "undefined reference" linker error on GCC 4.0.1 at -O0, but not at - O1; GCC 3.3.4 gives an error at both optimizations. This may not be a bug, if the version 4 optimizer is being cleverer than the version 3 optimizer; but the failure to reject the invalid code might be considered a regression. //By Stuart A. Malone, tweaked by Flash Sheridan #include #include class Foo { public: static const uint16_t kErrorCmd = 42; }; static uint32_t TestCmd(const uint16_t & cmd) { return (cmd == 42) ? 17 : 0; } int main() { printf("%u", TestCmd(Foo::kErrorCmd) ); } --- Here's the correct rejection: 368> /opt/gcc401chk/bin/g++ ../cpp/noerror/Llamagrahpics_static_constant_by_ref.cpp /tmp/cc3Hoo7z.o(.text+0x47): In function `main': : undefined reference to `Foo::kErrorCmd' collect2: ld returned 1 exit status Here's the full session for the failure to reject: 369> /opt/gcc401chk/bin/g++ -O1 -v ../cpp/noerror/Llamagrahpics_static_constant_by_ref.cpp Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+ + Thread model: posix gcc version 4.0.1 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -quiet -v -D_GNU_SOURCE ../cpp/ noerror/Llamagrahpics_static_constant_by_ref.cpp -quiet -dumpbase Llamagrahpics_static_constant_by_ref.cpp -mtune=pentiumpro -auxbase Llamagrahpics_static_constant_by_ref -O1 -version -o /tmp/ccBQBEWy.s ignoring nonexistent directory "/opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../i686-pc- linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1 /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/i686-pc-linux-gnu /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward /usr/local/include /opt/gcc401chk/include /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/include /usr/include End of search list. GNU C++ version 4.0.1 (i686-pc-linux-gnu) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 as -V -Qy -o /tmp/ccgiUdjh.o /tmp/ccBQBEWy.s GNU assembler version 2.15.91.0.2 (i586-suse-linux) using BFD version 2.15.91.0.2 20040727 (SuSE Linux) /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/collect2 --eh-frame-hdr -m elf_i386 - dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /opt/gcc401chk/lib/gcc/i686-pc- linux-gnu/4.0.1/crtbegin.o -L/opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1 -L/opt/gcc401chk/ lib/gcc/i686-pc-linux-gnu/4.0.1/../../.. /tmp/ccgiUdjh.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/gcc401chk/lib/gcc/i686-pc-linux-gnu/4.0.1/crtend.o /usr/lib/crtn.o [EMAIL PROTECTED] scripts 21:09:40 370> -- Summary: No error at -O1 for static const class member passed by reference Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23370
[Bug c++/23370] No error at -O1 for static const class member passed by reference
--- Additional Comments From flash at pobox dot com 2005-08-13 04:13 --- Created an attachment (id=9489) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9489&action=view) Llamagrahpics_static_constant_by_ref.cpp -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23370
[Bug c++/23370] No error at -O1 for static const class member passed by reference
--- Additional Comments From flash at pobox dot com 2005-08-13 04:18 --- Here's the discussion in our developer forum about the validity of this code; the rejection was originally reported as a bug against our compiler. At 4:34 PM -0500 2/16/04, Stuart A. Malone wrote: >But when I compile this kind of code using the native compiler, the >linker complains that Foo::kVersionNumber is an undefined symbol. >If I try to mollify it by placing code in my .cpp file like this: > > const int16_t Foo::kVersionNumber = 3; > >The compiler complains that the symbol has been defined twice. > >So how do I win? I checked a reference manual[1] last night, which said that the definition should be: const int16_t Foo::kVersionNumber; Keep the "= 3" in the class definition, like you did before. All you're doing with the above line is telling the compiler and linker where the storage should be defined. -- Keith Rollin -- Development Tools engineer [1] "The C Programming Language", Special Edition, p. 249, section 10.4.6.2, "Member Constants", where it says "If (and only if) you use an initialized member in a way that requires it to be stored as an object in memory, the member must be (uniquely) defined somewhere. The initializer may not be repeated: ". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23370
[Bug other/23430] New: configure should allow --comment option
When trying to keep track of various builds of GCC, it would be convenient to be able to store a comment to be read back with -v. Since -v echoes the full configure command line, all that's required is not rejecting an argument containing the desired comment. I'll upload a patch which permits this. All it does is add a --comment option which does nothing; it's just seventeen copies of the following, one for each configure file: --comment=*) ;;#Do nothing; this is just so that the comment will show up with -v. There may be an easier way for maintainers to patch this, using auto-configuration; but I've never run that. There are workarounds, such as embedding configuration information into directory names, but this approach seems simpler. A patched checking=yes build passed make check. Sample Session: 32> /opt2/gcc401-chk-all-4p/bin/g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /opt2/gcc-4.0.1-src/configure --enable-checking=all --prefix=/opt2/gcc401-chk- all-4p/ --enable-languages=c,c++ --comment=PalmSource checking=all build by Flash Sheridan 2005-08-11 via distcc. Patches 20161-8277, 22508-2005-08-00326, 22600-9330, 22604-2005-08-00334, plus a local patch to seventeen versions of configure to allow this comment. Thread model: posix gcc version 4.0.1 -- Summary: configure should allow --comment option Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23430
[Bug other/23430] configure should allow --comment option
--- Additional Comments From flash at pobox dot com 2005-08-17 01:53 --- Created an attachment (id=9508) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9508&action=view) Proposed patch -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23430
[Bug bootstrap/23430] --with-comment configure option isn't documented
--- Additional Comments From flash at pobox dot com 2005-08-17 19:41 --- Thanks, --with-comment seems to work, but it doesn't seem to be documented. Grepping both the documentation and source folder didn't find it; Googling for it turned it up in the context of MySQL, but not GCC. So I'm re-titling and reopening the bug. I think the option should be listed in --help, but it certainly needs to be documented somewhere. -- What|Removed |Added Severity|enhancement |minor Status|RESOLVED|REOPENED Resolution|INVALID | Summary|configure should allow -- |--with-comment configure |comment option |option isn't documented http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23430
[Bug c++/23472] New: __attribute__((constructor)) called twice with -funit-at-a-time
The constructor in the code for bug 16717 (below) gets called twice when compiled by 3.3.4 with - funit-at-a-time, but only once when called without -funit-at-a-time. This sounds like the opposite of bug 16717, which was marked as a 3.4 regression, and supposedly not a problem in 3.3.4. #include void hello (void) __attribute__ ((constructor)); void hello (void) { printf ("Hello world\n"); } int main (void) { return 0; } Here's the session: [EMAIL PROTECTED] scripts 18:00:33 81> /usr/bin/g++ -v -funit-at-a-time ../cpp/bugfiles/GCC_bugfiles/noerror/16717-attr- constructor.cpp Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local -- infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada -- disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with- slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc version 3.3.4 (pre 3.3.5 20040809) /usr/lib/gcc-lib/i586-suse-linux/3.3.4/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 - D__GNUC_PATCHLEVEL__=4 -D_GNU_SOURCE ../cpp/bugfiles/GCC_bugfiles/noerror/16717-attr- constructor.cpp -D__GNUG__=3 -quiet -dumpbase 16717-attr-constructor.cpp -auxbase 16717-attr- constructor -version -funit-at-a-time -o /tmp/ccKqhSCv.s GNU C++ version 3.3.4 (pre 3.3.5 20040809) (i586-suse-linux) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=96968 #include "..." search starts here: #include <...> search starts here: /usr/include/g++ /usr/include/g++/i586-suse-linux /usr/include/g++/backward /usr/local/include /usr/lib/gcc-lib/i586-suse-linux/3.3.4/include /usr/i586-suse-linux/include /usr/include End of search list. /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/as -V -Qy -o /tmp/ccgrP3v1.o /tmp/ccKqhSCv.s GNU assembler version 2.15.91.0.2 (i586-suse-linux) using BFD version 2.15.91.0.2 20040727 (SuSE Linux) /usr/lib/gcc-lib/i586-suse-linux/3.3.4/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld- linux.so.2 /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../crt1.o /usr/lib/gcc-lib/i586-suse-linux/ 3.3.4/../../../crti.o /usr/lib/gcc-lib/i586-suse-linux/3.3.4/crtbegin.o -L/usr/lib/gcc-lib/i586-suse- linux/3.3.4 -L/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/lib -L/usr/lib/gcc- lib/i586-suse-linux/3.3.4/../../.. /tmp/ccgrP3v1.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/ lib/gcc-lib/i586-suse-linux/3.3.4/crtend.o /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../crtn.o [EMAIL PROTECTED] scripts 18:00:57 82> a.out Hello world Hello world [EMAIL PROTECTED] scripts 18:01:07 83> [EMAIL PROTECTED] scripts 18:01:08 83> /usr/bin/g++ -fno-unit-at-a-time ../cpp/bugfiles/GCC_bugfiles/noerror/16717-attr- constructor.cpp [EMAIL PROTECTED] scripts 18:01:37 84> a.out Hello world [EMAIL PROTECTED] scripts 18:01:39 85> -- Summary: __attribute__((constructor)) called twice with -funit- at-a-time Product: gcc Version: 3.3.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23472
[Bug rtl-optimization/23870] [3.4 regression] loop-unswitching hangs compiler (and whole computer!)
--- Comment #6 from flash at pobox dot com 2006-03-01 17:42 --- Ouch. PalmSource/Access bug 111534. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23870
[Bug c/26774] New: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
The attached 9-line file causes a checking=all build of GCC 4.1.0 to exhaust memory, on both Ubuntu Linux 5.04/2.6.10-6-386 and Mac OSX 10.4.5. It's a Delta-reduced version of a preprocessed version of the Linux Kernel file drivers/media/video/msp3400.c, which exhibited the same behavior. The original compilation was being done by a test script outside the kernel tree, so the compilation encountered errors; the preprocessed file is invalid C, as is the Delta-reduced version. My checking=all builds of GCC 4.0.1 (patched) and 4.02 each give a segmentation fault. GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2) gives up cleanly: "confused by earlier errors, bailing out". On the non-reduced preprocessed file, with my patched checking build of 4.0.1, I instead get the following, which seems like PR22028, which is presumably fixed: internal compiler error: tree check: expected class type, have exceptional (error_mark) in gimplify_type_sizes, at gimplify.c:4368 Here's the session; I'll attached the preprocessed file and the Delta-reduction. I used ulimit on Ubuntu to save time; fully exhausting memory on OSX (where ulimit doesn't seem to work) with the unreduced file took half an hour, but memory use gets above 50MB fairly quickly. 3> ulimit -m 5 -v 5 [EMAIL PROTECTED] scripts 20:11:53 4> /opt/gcc410-chk-all/bin/gcc -v ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i Using built-in specs. Target: i686-pc-linux-gnu Configured with: /opt/Gcc-4.1.0-dist/configure --enable-checking=all --prefix=/opt/gcc410-chk-all --enable-languages=c,c++ --with-comment=PalmSource checking=all build by Flash Sheridan 3/17/06 Thread model: posix gcc version 4.1.0 /home/opt/gcc410-chk-all/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1 -fpreprocessed ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i -quiet -dumpbase 122285_msp3400_min.i -mtune=pentiumpro -auxbase 122285_msp3400_min -version -o /tmp/ccV7UEre.s GNU C version 4.1.0 (i686-pc-linux-gnu) compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8ubuntu2). GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0 Compiler executable checksum: a68040354320563d9f0f04c1edf3c815 ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:3: warning: struct i2c_client declared inside parameter list ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:3: warning: its scope is only this definition or declaration, which is probably not what you want ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:4: error: field driver has incomplete type ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:6: error: two or more data types in declaration specifiers ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:6: warning: struct i2c_client declared inside parameter list ../cpp/bugfiles/GCC_bugfiles/error/122285_msp3400_min.i:8: warning: initialization from incompatible pointer type virtual memory exhausted: Cannot allocate memory [EMAIL PROTECTED] scripts 20:14:31 --- PalmSource bug #122285 http://pobox.com/~flash Quality Lead for Compilers and Debuggers PalmSource, Inc. Tools Quality Management -- Summary: Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com GCC host triplet: i686-pc-linux-gnu, powerpc-apple-darwin8.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
[Bug c/26774] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
--- Comment #1 from flash at pobox dot com 2006-03-21 04:22 --- Created an attachment (id=11075) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11075&action=view) Delta-reduced version -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
[Bug c/26774] Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c
--- Comment #2 from flash at pobox dot com 2006-03-21 04:23 --- Created an attachment (id=11076) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11076&action=view) Unreduced preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26774
[Bug c/26818] New: tree check: expected class �type�, have �exceptional� (error_mark) in finish_struct, at c-decl.c:5350 (time.c)
The file below causes "internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in finish_struct, at c-decl.c:5350" with a checking=all build of GCC 4.1.0 on both Ubuntu Linux 5.04 and Mac OSX 10.4.5. This is a Delta-reduced preprocessed version of the Linux kernel file arch/x86_64/kernel/time.c; it was originally compiled by a test script outside of the kernel tree, so it was presumably invalid C. struct acpi_table_rsdt { struct acpi_table_header header; } __attribute__ ((packed)); A checking=all build of GCC 4.0.2 correctly reports an error with no problem: /opt/gcc402-chk-all/bin/gcc ../cpp/bugfiles/GCC_bugfiles/error/122582_time_min.i ../cpp/bugfiles/GCC_bugfiles/error/122582_time_min.i:2: error: field Âheader has incomplete type This sounds somewhat like PR 22028, but that's marked as fixed in 4.1.0, and its testcase doesn't cause a problem on my builds of 4.1.0. Here's the session; I'll upload the file, though its complete contents are above. 78> /opt/gcc410-chk-all/bin/gcc -v ../cpp/bugfiles/GCC_bugfiles/error/122582_time_min.i Using built-in specs. Target: powerpc-apple-darwin8.5.0 Configured with: /opt/Gcc-4.1.0-dist/configure --enable-checking=all --prefix=/opt/gcc410-chk-all --enable-languages=c,c++ --with-comment=PalmSource checking=all build by Flash Sheridan 3/17/06 Thread model: posix gcc version 4.1.0 /opt/gcc410-chk-all/libexec/gcc/powerpc-apple-darwin8.5.0/4.1.0/cc1 -fpreprocessed ../cpp/bugfiles/GCC_bugfiles/error/122582_time_min.i -fPIC -quiet -dumpbase 122582_time_min.i -auxbase 122582_time_min -version -o /var/tmp//ccRoo730.s GNU C version 4.1.0 (powerpc-apple-darwin8.5.0) compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5247). GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0 Compiler executable checksum: 1116648296470812f723ca4bff2463c0 ../cpp/bugfiles/GCC_bugfiles/error/122582_time_min.i:2: error: field 'header' has incomplete type ../cpp/bugfiles/GCC_bugfiles/error/122582_time_min.i:3: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in finish_struct, at c-decl.c:5350 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. --- PalmSource bug 122582 http://pobox.com/~flash Quality Lead for Compilers and Debuggers PalmSource, Inc. Tools Quality Management -- Summary: tree check: expected class ÂtypeÂ, have Âexceptional (error_mark) in finish_struct, at c-decl.c:5350 (time.c) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26818
[Bug c/26818] tree check: expected class �type�, have �exceptional� (error_mark) in finish_struct, at c-decl.c:5350 (time.c)
--- Comment #1 from flash at pobox dot com 2006-03-23 01:43 --- Created an attachment (id=11101) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11101&action=view) Delta-reduced version -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26818
[Bug c/26865] New: Segmentation fault with -std=c99 -O1 on genksyms.c
/GCC_bugfiles/error/122593_genksyms_min.i:138: warning: incompatible implicit declaration of built-in function 'fprintf' ../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i: In function 'print_list': ../cpp/bugfiles/GCC_bugfiles/error/122593_genksyms_min.i:96: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. --- PalmSource bug 122593 http://pobox.com/~flash Quality Lead for Compilers and Debuggers PalmSource, Inc. Tools Quality Management -- Summary: Segmentation fault with -std=c99 -O1 on genksyms.c Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
[Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
--- Comment #1 from flash at pobox dot com 2006-03-25 05:56 --- Created an attachment (id=11120) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11120&action=view) Preprocessed Delta-reduced source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
[Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
--- Comment #2 from flash at pobox dot com 2006-03-25 05:56 --- Created an attachment (id=11121) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11121&action=view) Pre-processed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
[Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
--- Comment #3 from flash at pobox dot com 2006-03-25 05:57 --- Created an attachment (id=11122) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11122&action=view) Original source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
[Bug c/26865] Segmentation fault with -std=c99 -O1 on genksyms.c
--- Comment #4 from flash at pobox dot com 2006-03-25 05:57 --- Created an attachment (id=11123) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11123&action=view) Original header -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26865
[Bug target/21613] New: -fpic only: internal compiler error: in extract_insn, at recog.c:2083 (20010107-1.c:6)
The following gives "internal compiler error: in extract_insn, at recog.c:2083", only with -fpic: arm-softfloat-linux-gnu-g++ -fpic ../c/noerror/GPL/20010107-1.c 20010107-1.c is a C Torture file, containing only the following: unsigned long x[4]; void foo(void) { ((void (*)())(x+2))(); } This sounds similar to 19960 (darwin/m6811-elf) and 19770 (hppa64/hppa64). I'll attach the preprocessed file (though it's hardly necessary, since there are no #includes), and the -v -savetemps output. Here's the full error message: ../c/noerror/GPL/20010107-1.c: In function `void foo()': ../c/noerror/GPL/20010107-1.c:6: error: unrecognizable insn: (call_insn 14 13 16 0 (parallel [ (call (mem:SI (plus:SI (reg/f:SI 68) (const_int 8 [0x8])) [0 S4 A32]) (const_int 0 [0x0])) (use (const_int 0 [0x0])) (clobber (reg:SI 14 lr)) ]) -1 (nil) (expr_list:REG_DEAD (reg/f:SI 68) (expr_list:REG_UNUSED (reg:SI 14 lr) (nil))) (nil)) ../c/noerror/GPL/20010107-1.c:6: internal compiler error: in extract_insn, at recog.c:2083 --- Flash Sheridan [EMAIL PROTECTED] Quality Lead for Compilers and Debuggers PalmSource, Inc. Tools Quality Management -- Summary: -fpic only: internal compiler error: in extract_insn, at recog.c:2083 (20010107-1.c:6) Product: gcc Version: 3.4.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-host_pc-linux-gnu GCC target triplet: arm-softfloat-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21613
[Bug target/19770] gcc.c-torture/compile/20050113-1.c: ICE: in extract_insn, at recog.c:2083
--- Additional Comments From flash at pobox dot com 2005-05-17 03:26 --- See also 19960 (darwin/m6811-elf) and 21613 (i686-linux/arm-linux). -- What|Removed |Added CC||flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19770
[Bug target/19960] internal compiler error: in extract_insn, at recog.c:2175
--- Additional Comments From flash at pobox dot com 2005-05-17 03:27 --- See also 19770 (hppa64/hppa64) and 21613 (i686-linux/arm-linux). -- What|Removed |Added CC||flash at pobox dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19960
[Bug target/21613] -fpic only: internal compiler error: in extract_insn, at recog.c:2083 (20010107-1.c:6)
--- Additional Comments From flash at pobox dot com 2005-05-17 19:28 --- Created an attachment (id=8914) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8914&action=view) Pre-processed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21613
[Bug target/21613] -fpic only: internal compiler error: in extract_insn, at recog.c:2083 (20010107-1.c:6)
--- Additional Comments From flash at pobox dot com 2005-05-17 19:29 --- Created an attachment (id=8915) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8915&action=view) -v -save-temps output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21613
[Bug c/21659] New: "weak declaration must precede definition" error missing at >= O2
Compiling the C Torture file "weak-6.c" (below) gives an error at O0 and O1, as seemed to be expected by the author. At O2, there's no error or warning. 214> gcc -O2 -c ../c/noerror/GPL/3.3.2/nowarn/bulk/gcc.dg/weak/weak-6.c 215> gcc -O1 -c ../c/noerror/GPL/3.3.2/nowarn/bulk/gcc.dg/weak/weak-6.c ../c/noerror/GPL/3.3.2/nowarn/bulk/gcc.dg/weak/weak-6.c:4: error: weak declaration of `foo' must precede definition weak-6.c: /* { dg-do compile } */ extern void * foo (void); void * foo (void) { return (void *)foo; } /* { dg-error "precede" } */ #pragma weak foo Also occurs with arm-softfloat-linux-gnu-g++ 3.4.1. With Apple gcc version 3.3, I don't get the error at any optimization level. Here's the save-temps output: 225> gcc -v -save-temps -O2 -c ../c/noerror/GPL/3.3.2/nowarn/bulk/gcc.dg/weak/weak-6.c Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local -- infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada -- disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with- slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc version 3.3.4 (pre 3.3.5 20040809) /usr/lib/gcc-lib/i586-suse-linux/3.3.4/cc1 -E -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=4 ../c/noerror/GPL/3.3.2/nowarn/bulk/gcc.dg/weak/weak-6.c -O2 weak -6.i #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc-lib/i586-suse-linux/3.3.4/include /usr/i586-suse-linux/include /usr/include End of search list. /usr/lib/gcc-lib/i586-suse-linux/3.3.4/cc1 -fpreprocessed weak-6.i -quiet -dumpbase weak-6.c -auxbase weak-6 -O2 -version -o weak-6.s GNU C version 3.3.4 (pre 3.3.5 20040809) (i586-suse-linux) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=81 --param ggc-min-heapsize=96968 /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/as -V -Qy -o weak-6.o weak -6.s GNU assembler version 2.15.91.0.2 (i586-suse-linux) using BFD version 2.15.91.0.2 20040727 (SuSE Linux) -- Summary: "weak declaration must precede definition" error missing at >= O2 Product: gcc Version: 3.3.4 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21659
[Bug c/16031] New: 5.1093e+35 (as a variable) cast to long long => -1
The following prints -1; this is undefined behavior per C99 spec §6.3.1.4, but it's odd nonetheless, and inconsistent with two similar cases, below: volatile const register float arg2_float_195 = FLT_MAX/666.0; printf( " \t %s %lld \n " , "" , ( long long )arg2_float_195 ); (The blank string and parentheses are testing artifacts.) As an unsigned long, we get 18446744073709551615: printf( " \t %s %llu \n " , "" , ( unsigned long long )arg2_float_195 ); As a literal constant, we get 9223372036854775807: printf( " \t %s ( long long )5.1093e+35 :\t %lld \n " , "" , ( long long ) 5.1093e+35 ); Here's the session; preprocessed file to follow. Originally found with C99 option on, but also occurs without it. Also occurred with DevTools 3.3. /usr/local/gcc34/bin/gcc -v -save-temps ../c/noerror/bugfiles/gcc_bugfiles/Float_to_long_long.c Reading specs from /usr/local/gcc34/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/specs Configured with: configure --prefix=/usr/local/gcc34 Thread model: posix gcc version 3.4.0 /usr/local/gcc34/libexec/gcc/powerpc-apple-darwin7.3.0/3.4.0/cc1 -E -quiet -v -D__DYNAMIC__ ../ c/noerror/bugfiles/gcc_bugfiles/Float_to_long_long.c -fPIC -o Float_to_long_long.i ignoring nonexistent directory "/usr/local/gcc34/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../../ powerpc-apple-darwin7.3.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/gcc34/include /usr/local/gcc34/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/include /usr/include End of search list. /usr/local/gcc34/libexec/gcc/powerpc-apple-darwin7.3.0/3.4.0/cc1 -fpreprocessed Float_to_long_long.i -fPIC -quiet -dumpbase Float_to_long_long.c -auxbase Float_to_long_long -version -o Float_to_long_long.s GNU C version 3.4.0 (powerpc-apple-darwin7.3.0) compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 1495). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 as -arch ppc -o Float_to_long_long.o Float_to_long_long.s /usr/local/gcc34/libexec/gcc/powerpc-apple-darwin7.3.0/3.4.0/collect2 -arch ppc -dynamic -o a.out -lcrt1.o -lcrt2.o -L/usr/local/gcc34/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0 -L/usr/local/ gcc34/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../.. Float_to_long_long.o -lgcc -lgcc_eh -lSystem | c++filt [gharlane:compilerChain/tests/scripts] flash% a.out )5.1093e+35 (( long long )arg2_float_195 ) : -1 )5.1093e+35 (( unsigned long long )arg2_float_195 ) : 18446744073709551615 ( long long )5.1093e+35 : 9223372036854775807 -- Summary: 5.1093e+35 (as a variable) cast to long long => -1 Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: flash at pobox dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin7.3.0 GCC host triplet: powerpc-apple-darwin7.3.0 GCC target triplet: powerpc-apple-darwin7.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16031