Tried to build the gentoo ebuild for gcc head pulled from CVS on 20050702. Got this error: stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -save-temps -march=athlon-xp -O2 -pipe -fprofile-use -freorder-blocks-and-partitio n -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc -I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/. -I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/../include -I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/../libcpp/include /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c -o dominance.o xgcc: warning: -pipe ignored because -save-temps specified /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c: In function 'calculate_dominance_info': /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of executions for edge 40-98 thought to be -9801 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of executions for edge 40-41 thought to be 14798 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of iterations for basic block 98 thought to be -4804 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of executions for edge 98-103 thought to be -9801 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of executions for edge 98-99 thought to be 4997 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of iterations for basic block 103 thought to be -4804 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of executions for edge 103-110 thought to be -9801 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of executions for edge 103-104 thought to be 4997 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649: error: corrupted profile info: number of iterations for basic block 110 thought to be -4804 make[2]: *** [dominance.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.0_beta20050702/work/build/gcc' make[1]: *** [stagefeedback_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.0_beta20050702/work/build/gcc' make: *** [profiledbootstrap] Error 2 # gcc/stage1/xgcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.0-beta20050702 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20050702/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050702 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050702/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050702/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20050702/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --enable-java-awt=gtk --enable-languages=c,c++,java,f95 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.0 20050702 (experimental) gzipped dominance.i attached.
Created attachment 9210 [details] gzipped testcase
I get a similar error on my pentium-3 box, configuring with just: /afs/cs/usr/bhudson/gcc/gcc-cvs-head/configure --enable-languages=c,c++ and gmake CFLAGS=-O2 BOOT_CFLAGS=-O2 profiledbootstrap with CVS of Sun Jul 10 06:06:01 EDT 2005 stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-linux-gnu/bin/ -c -O2 -fprofile-use -freorder-blocks-and-partition -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-pro totypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold -style-definition -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I/afs/cs/usr /bhudson/gcc/gcc-cvs-head/gcc -I/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/. -I/af s/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/../include -I/afs/cs/usr/bhudson/gcc/gcc-c vs-head/gcc/../libcpp/include /afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins .c -o builtins.o /afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c: In function 'expand_builtin ': /afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c:6283: error: corrupted profi le info: number of executions for edge 49-676 thought to be -148 /afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c:6283: error: corrupted profi le info: number of executions for edge 49-50 thought to be 148 gmake[2]: *** [builtins.o] Error 1
Has this PR been fixed by http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01881.html ? The latest snapshot gcc (GCC) 4.1.0 20050730 (experimental) (gentoo x86) succeeded with profiledbootstrap Is PR 22471 related - possibly also fixed?
Fixed.