When I try to bootstrap gcc trunk configured with configure --prefix=some_path --enable-checking=yes,fold --enable-languages=c,c++ I get a fold check error: original tree changed by fold when compiling libdecnumber/bid/host-ieee32.c. The exact compile command line leading to this error (in the libdecnumber subdirectory of the build directory) is: source='/home/mjambor/svn/libdecnumber/bid/host-ieee32.c' object='host-ieee32.o' libtool=no /home/mjambor/svn/obj/./prev-gcc/xgcc -B/home/mjambor/svn/obj/./prev-gcc/ -B/home/mjambor/inst/svn//x86_64-unknown-linux-gnu/bin/ -I/home/mjambor/svn/libdecnumber -I. -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -pedantic -Wno-long-long -Werror -I/home/mjambor/svn/libdecnumber -I. -c /home/mjambor/svn/libdecnumber/bid/host-ieee32.c The error output is: /home/mjambor/svn/libdecnumber/bid/host-ieee32.c: In function '__host_to_ieee_32': /home/mjambor/svn/libdecnumber/bid/host-ieee32.c:50: internal compiler error: fold check: original tree changed by fold I will attach preprocessed source.
Created attachment 16808 [details] Preprocessed source Preprocessed source
This is a bug in fold_checksum_tree, TYPE_NEXT_VARIANT on a type is allowed to change.
Subject: Bug 38371 Author: jakub Date: Thu Dec 4 09:33:27 2008 New Revision: 142430 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142430 Log: PR middle-end/38371 * fold-const.c (fold_checksum_tree): Allow modification of TYPE_NEXT_VARIANT. Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c
Fixed.
*** Bug 38224 has been marked as a duplicate of this bug. ***