------- Additional Comments From lars dot sonchocky-helldorf at hamburg dot de  
2004-12-14 13:46 -------
Well next time I better read http://gcc.gnu.org/install/build.html thoroughly
instead of just banking on the "word of irc" instead:
It had to be 'BOOT_CFLAGS' instead of 'BOOTCFLAGS' of course.

Anyway, surprisingly 'make bootstrap STAGE1_CFLAGS="-no-cpp-precomp
-Wa,-force_cpusubtype_ALL" BOOT_CFLAGS="-O2 -g -save-temps"' worked flawlessly -
no Bootstrap comparison failure any more.

I also came to know that '-save-temps' doesn't save the .i and .s files in the
stageX directories but just in the gcc directory (so the stage2 .i and .s files
would get erased by a bootstrap or bubblestrap)

So I started over like this:

cd GCC/FSF/gcc-build/
rm -rf *
../gcc-4.0-20041212/configure --prefix=/tmp/gcc
make bootstrap STAGE1_CFLAGS="-no-cpp-precomp -Wa,-force_cpusubtype_ALL"
cd gcc

redoing stage 2 (note the additional '-fomit-frame-pointer' (which I omitted in
the first place too ;-))):

touch ../../gcc-4.0-20041212/gcc/reload.c
make restage2 BOOT_CFLAGS="-O2 -g -fomit-frame-pointer -save-temps"

now I moved reload.i and reload.s into a safe place and then redoing stage 3:

touch ../../gcc-4.0-20041212/gcc/reload.c
make restage3 BOOT_CFLAGS="-O2 -g -fomit-frame-pointer -save-temps"

then I saved the "other" reload.i and reload.s too

The comparison of all stage2 vs. stage3 files yieled absolutelly no difference
(even the .o files are similar)


Heisenbug?

Next thing I'll do is a clean 'make bootstrap STAGE1_CFLAGS="-no-cpp-precomp
-Wa,-force_cpusubtype_ALL" BOOT_CFLAGS="-O2 -g -fomit-frame-pointer"' and then
again the same with '-save-temps' added to see which (if?) one of those fails.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18972

Reply via email to