I just tried to bootstrap gcc 4.5 mainline snapshot 20090730 and it failed when comparing stage 2 and stage3. There is the output Comparing stages 2 and 3 warning: gcc/cc1-checksum.o differs warning: gcc/cc1plus-checksum.o differs Bootstrap comparison failure! x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/vec.o differs x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/eh_globals.o differs x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/eh_alloc.o differs x86_64-unknown-linux-gnu/libstdc++-v3/src/locale.o differs configure line was ../src/gcc-4.5-20090730/configure --enable-languages=c,c++ --prefix=/home/dcb/gcc/20090730/results --enable-checking --enable-build-with-cxx The previous snapshot 20090723 also failed to bootstrap but the one before that 20090716 bootstrapped fine. I suspect a code change somewhere between 20090716 and 20090723.
(In reply to comment #0) > I just tried to bootstrap gcc 4.5 mainline snapshot 20090730 > and it failed when comparing stage 2 and stage3. The extra word --enable-build-with-cxx seems to be significant, because when I remove it, the compiler bootstraps fine.
Keywords: mangling, anonymous namespaces. Adding option such as -frandom-seed=271828 to CXXFLAGS_FOR_TARGET allows to bootstrap.
Created attachment 18885 [details] Candidate patch This fixes the bootstrap, though a bunch of plugin tests fail compared to unpatched build with C.
Should be fixed by r153734.