[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #9 from rob1weld at aol dot com 2007-06-20 05:15 --- Still occurs: gcc version 4.3.0 20070619 (experimental) /root/downloads/gcc-4_3-trunk/libgcc/../gcc/libgcc2.c: In function '__muldi3': /root/downloads/gcc-4_3-trunk/libgcc/../gcc/libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12775 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #8 from rob1weld at aol dot com 2007-05-29 03:57 --- For target i686-pc-linux-gnu it breaks at: /root/downloads/gcc-4_3-trunk/libgcc/../gcc/libgcc2.c: In function '__muldi3': /root/downloads/gcc-4_3-trunk/libgcc/../gcc/libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652 For target i686-pc-cygwin it breaks at: $ cat /cygdrive/C/makecygwin/gcc-4_3-trunk/LAST_UPDATED Mon May 28 16:39:01 UTC 2007 (revision 125132) /cygdrive/C/makecygwin/gcc-4_3-trunk/configure --verbose --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --with-tune=athlon-xp --prefix=/usr --enable-objc-gc --enable-concept-checks --disable-multilib --with-gxx-include-dir=/usr/include/c++/4.3 --enable-libstdcxx-debug --enable-static --enable-shared --enable-initfini-array --enable-__cxa_atexit --enable-threads=posix --enable-version-specific-runtime-libs --enable-libssp --enable-libmudflap --enable-libgomp --disable-werror --enable-nls --with-included-gettext --enable-decimal-float --with-long-double-128 --enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib --enable-gtk-cairo --enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-tool-wrappers --enable-portable-native-sync --enable-examples --enable-libgcj-multifile --with-stabs --enable-hash-synchronization --enable-gc-debug --enable-interpreter --with-system-zlib --enable-libada --with-tls --with-cpu=athlon-xp --with-arch=athlon-xp --enable-stage1-checking=assert,fold,gc,misc,rtl,rtlflag,runtime,tree /cygdrive/C/makecygwin/gcc-4_3-trunk/libgcc/../gcc/libgcc2.c: In function '__sgetc_r': /cygdrive/C/makecygwin/gcc-4_3-trunk/libgcc/../gcc/libgcc2.c:566: internal compiler error: in fold_checksum_tree, at fold-const.c:12652 I hope the two different spots help narrow down the one place where fold is broken (if that is what the problem is). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #7 from rob1weld at aol dot com 2007-05-27 22:08 --- This bug is still active when configuring with --enable-stage1-checking=assert,fold,gc,misc,rtl,rtlflag,runtime,tree # cat gcc-4_3-trunk/LAST_UPDATED Sun May 27 20:31:07 UTC 2007 (revision 125116) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #6 from rob1weld at aol dot com 2007-05-24 06:41 --- make profiledbootstrap is broken. Newest compile uses --enable-stage1-checking=assert,gc,misc,rtl,rtlflag,runtime since both fold and tree have some issues. Results for 4.3.0 20070523 (experimental) testsuite on i686-pc-linux-gnu http://gcc.gnu.org/ml/gcc-testresults/2007-05/msg01171.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-05-22 09:53 --- bootstrap with fold-checking is known to be broken. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #5 from rob1weld at aol dot com 2007-05-22 16:02 --- Thanks for confirming, Richard. It works on 4.2.0/1 and I've enclosed notes in the prior message that _probably_ explain why it is failing. In addition I just did a build (one day newer version) _without_ fold and it still halted the make and trigger a GNAT BUG in verify_flow_info. If the bootstrap is that touchy then we won't be getting many good compiles finishing (and test results submitted, and bugs fixed). Yesterday it worked, today I added --enable-stage1-checking=assert,gc,misc,rtl,rtlflag,runtime,tree and it broke. --- I'm placing this here because I am reasonably certain that it is related to the problems with the fold-const.c after examining the code. Here is the output: make profiledbootstrap 21 | tee make_1_log.txt ...(Many Many lines) ranlib libdecnumber.a make[3]: Leaving directory `/opt/gcc-4_3-build/libdecnumber' make[3]: Entering directory `/opt/gcc-4_3-build/gcc' test -d po || mkdir po /usr/bin/msgfmt --statistics -o po/be.gmo /root/downloads/gcc-4_3-trunk/gcc/po/be.po 114 translated messages, 1159 fuzzy translations, 4632 untranslated messages. ...(Many lines) build/genrecog /root/downloads/gcc-4_3-trunk/gcc/config/i386/i386.md \ insn-conditions.md tmp-recog.c /root/downloads/gcc-4_3-trunk/gcc/config/i386/i386.md:18884: warning: operand 1 missing mode? /bin/sh /root/downloads/gcc-4_3-trunk/gcc/../move-if-change tmp-recog.c insn-recog.c echo timestamp s-recog ...(Many lines) ranlib libbackend.a ...(Few lines) build/genchecksum cc1-dummy cc1-checksum.c ...(Some lines) /opt/gcc-4_3-build/./prev-gcc/xgcc -B/opt/gcc-4_3-build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer -fprofile-generate -gnatpg -gnata -I- -I. -Iada -I/root/downloads/gcc-4_3-trunk/gcc/ada /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb -o ada/ali.o /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb: In function 'ALI.SCAN_ALI': /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 126 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 126 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 126 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 126 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 126 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 664 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 664 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 664 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 664 /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265: error: control flow in the middle of basic block 664 +===GNAT BUG DETECTED==+ | 4.3.0 20070522 (experimental) (i686-pc-linux-gnu) verify_flow_info failed| | Error detected around /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb:2265 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html.| | Use a subject line meaningful to you and us to track the bug.| | Include the entire contents of this bug box in the report. | | Include the exact gcc or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==+ (blank line) Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. (blank line) /root/downloads/gcc-4_3-trunk/gcc/ada/ali.adb /root/downloads/gcc-4_3-trunk/gcc/ada/ali.ads /root/downloads/gcc-4_3-trunk/gcc/ada/casing.ads /root/downloads/gcc-4_3-trunk/gcc/ada/types.ads /root/downloads/gcc-4_3-trunk/gcc/ada/gnatvsn.ads /root/downloads/gcc-4_3-trunk/gcc/ada/rident.ads /root/downloads/gcc-4_3-trunk/gcc/ada/table.ads /root/downloads/gcc-4_3-trunk/gcc/ada/butil.ads /root/downloads/gcc-4_3-trunk/gcc/ada/debug.ads /root/downloads/gcc-4_3-trunk/gcc/ada/fname.ads /root/downloads/gcc-4_3-trunk/gcc/ada/namet.ads /root/downloads/gcc-4_3-trunk/gcc/ada/alloc.ads /root/downloads/gcc-4_3-trunk/gcc/ada/hostparm.ads /root/downloads/gcc-4_3-trunk/gcc/ada/opt.ads /root/downloads/gcc-4_3-trunk/gcc/ada/osint.ads /root/downloads/gcc-4_3-trunk/gcc/ada/output.ads /root/downloads/gcc-4_3-trunk/gcc/ada/table.adb /root/downloads/gcc-4_3-trunk/gcc/ada/tree_io.ads (blank line) (blank line) raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:398 make[3]: *** [ada/ali.o] Error 1 make[3]:
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|blocker |normal Component|bootstrap |middle-end Keywords||build, ice-checking, ice-on- ||valid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #1 from rob1weld at aol dot com 2007-05-21 19:09 --- I did some more testing on this issue. I started pulling off configure option a half dozen at a time. 1st I removed: --enable-initfini-array --enable-__cxa_atexit --enable-threads=posix --enable-decimal-float --with-long-double-128 --with-tls Next I removed: --enable-objc-gc --enable-concept-checks --enable-libstdcxx-debug --enable-static --enable-shared --enable-version-specific-runtime-libs --enable-gc-debug Then I removed: --enable-libssp --enable-libmudflap --enable-libgomp --enable-nls --with-included-gettext --enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib --enable-gtk-cairo --enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-tool-wrappers --with-gjdoc --enable-portable-native-sync --enable-libgcj-multifile --with-stabs --enable-hash-synchronization --enable-interpreter --with-system-zlib --enable-libada It still broke each time in the _exact_ same place. Finally I removed _ALL_ options and simply used ./configure. A grep of the Makefile's BUILD_CONFIGARGS says: '--enable-languages=c,c++,fortran,java,objc' which are not enough for what I prefer - but now it builds I can add some more options back in. So now my xgcc says this: #gcc/xgcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /root/downloads/gcc-4_3-trunk/configure Thread model: posix gcc version 4.3.0 20070521 (experimental) The make of gcc has now passed the point where the prior ICE occurred. I did a diff -q of the ICE'd build directory and the (so far) successful directory and came up with this output (hand-edited output of diff): Files ../gcc-4_3-build-ICE-1/Makefile and ../gcc-4_3-build/Makefile differ Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/fixincludes/config.log and ../gcc-4_3-build/build-i686-pc-linux-gnu/fixincludes/config.log differ Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/fixincludes/config.status and ../gcc-4_3-build/build-i686-pc-linux-gnu/fixincludes/config.status differ Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/fixincludes/mkheaders Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/fixincludes/mkheaders.almost Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/libiberty/Makefile Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/libiberty/config.log Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/libiberty/config.status Files ../gcc-4_3-build-ICE-1/build-i686-pc-linux-gnu/libiberty/libiberty.a Files ../gcc-4_3-build-ICE-1/config.log Files ../gcc-4_3-build-ICE-1/config.status Files ../gcc-4_3-build-ICE-1/gcc/Make-hooks Files ../gcc-4_3-build-ICE-1/gcc/Makefile Files ../gcc-4_3-build-ICE-1/gcc/ada/Makefile Files ../gcc-4_3-build-ICE-1/gcc/auto-host.h Files ../gcc-4_3-build-ICE-1/gcc/config.cache Files ../gcc-4_3-build-ICE-1/gcc/config.log Files ../gcc-4_3-build-ICE-1/gcc/config.status Files ../gcc-4_3-build-ICE-1/gcc/configargs.h Files ../gcc-4_3-build-ICE-1/gcc/gccbug Files ../gcc-4_3-build-ICE-1/gcc/libada-mk Files ../gcc-4_3-build-ICE-1/intl/Makefile Files ../gcc-4_3-build-ICE-1/intl/config.cache Files ../gcc-4_3-build-ICE-1/intl/config.h Files ../gcc-4_3-build-ICE-1/intl/config.intl Files ../gcc-4_3-build-ICE-1/intl/config.log Files ../gcc-4_3-build-ICE-1/intl/config.status Files ../gcc-4_3-build-ICE-1/libiberty/Makefile Files ../gcc-4_3-build-ICE-1/libiberty/alloca.o Files ../gcc-4_3-build-ICE-1/libiberty/argv.o Files ../gcc-4_3-build-ICE-1/libiberty/choose-temp.o Files ../gcc-4_3-build-ICE-1/libiberty/concat.o Files ../gcc-4_3-build-ICE-1/libiberty/config.cache Files ../gcc-4_3-build-ICE-1/libiberty/config.log Files ../gcc-4_3-build-ICE-1/libiberty/config.status Files ../gcc-4_3-build-ICE-1/libiberty/cp-demangle.o Files ../gcc-4_3-build-ICE-1/libiberty/cp-demint.o Files ../gcc-4_3-build-ICE-1/libiberty/cplus-dem.o Files ../gcc-4_3-build-ICE-1/libiberty/dyn-string.o Files ../gcc-4_3-build-ICE-1/libiberty/fdmatch.o Files ../gcc-4_3-build-ICE-1/libiberty/fibheap.o Files ../gcc-4_3-build-ICE-1/libiberty/filename_cmp.o Files ../gcc-4_3-build-ICE-1/libiberty/floatformat.o Files ../gcc-4_3-build-ICE-1/libiberty/fnmatch.o Files ../gcc-4_3-build-ICE-1/libiberty/fopen_unlocked.o Files ../gcc-4_3-build-ICE-1/libiberty/getopt.o Files ../gcc-4_3-build-ICE-1/libiberty/getopt1.o Files ../gcc-4_3-build-ICE-1/libiberty/getpwd.o Files ../gcc-4_3-build-ICE-1/libiberty/getruntime.o Files ../gcc-4_3-build-ICE-1/libiberty/hashtab.o Files ../gcc-4_3-build-ICE-1/libiberty/hex.o Files ../gcc-4_3-build-ICE-1/libiberty/lbasename.o Files ../gcc-4_3-build-ICE-1/libiberty/libiberty.a Files ../gcc-4_3-build-ICE-1/libiberty/lrealpath.o Files ../gcc-4_3-build-ICE-1/libiberty/make-relative-prefix.o Files ../gcc-4_3-build-ICE-1/libiberty/make-temp-file.o Files ../gcc-4_3-build-ICE-1/libiberty/md5.o Files ../gcc-4_3-build-ICE-1/libiberty/mkstemps.o Files ../gcc-4_3-build-ICE-1/libiberty/objalloc.o Files
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #2 from rob1weld at aol dot com 2007-05-21 21:05 --- The BUG is somewhere in here: I put back ALL my origonal (lengthy) configure options but left off the checking. It gets past the ICE. That is not good though... Situation A): The checker is working fine and the code produced is incorrect and this is being caught by the checker. Situation B): The checker is incorrect and the code produced is OK, the checker is wrongly complaining about code that is OK. I check back in a day or two ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024
[Bug middle-end/32024] ICE - libgcc2.c:557: internal compiler error: in fold_checksum_tree, at fold-const.c:12652
--- Comment #3 from rob1weld at aol dot com 2007-05-22 03:17 --- Created an attachment (id=13598) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13598action=view) Notes: diffs of 4.2.1 and 4.3.0 fold-const.c and ICE -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32024