egcs-19991025 doesn't bootstrap with -march=pentiumpro

Mathias Froehlich frohlich@na.uni-tuebingen.de
Mon Oct 25 03:57:00 GMT 1999


Hello, gcc-Team!

I have a bootstrap failure of the current egcs development tree. It
appears on RedHat Linux 6.1 and on Solaris_x86 2.6. I use CFLAGS='-O3
-march=pentiumpro' to bootstrap gcc (Yes, I know that you recommend
using -O2). Usually this will work perfectly. Since the beginning of
October it fails to bootstrap with this flags. It gives an ICE while
compiling libgcc.a the second time. Output from the compilation is
appended below. Since this seems to originate from a misscompiled
stage2 compiler I do not include preprocessed input files. I do not
know where the error occurs.

The commands I use to bootstrap are:

CC="gcc" CFLAGS="-O2" CXX="g++" CXXFLAGS="-O3 -march=pentiumpro -I/sw/include" LDFLAGS="-L/sw/lib -R/sw/lib" ./configure --prefix=/sw/i86_56/gcc-X.X --host=i686-pc-solaris2.6 --enable-version-specific-runtime-libs --enable-languages=c,c++,f77 --with-gnu-as

make bootstrap BOOT_CFLAGS="-O3 -march=pentiumpro"


I want to ensure that you are aware of this bootstrap failure.

If you need further information, feel free to contact me.
I hope this will help You.

   Regards,

       Mathias Froehlich



-----------------------------------------------------------------------------
...

stage1/xgcc -Bstage1/ -B/sw/i86_56/gcc-X.X/i686-pc-solaris2.6/bin/  -DIN_GCC    -W -Wall -O3 -march=pentiumpro  -DHAVE_CONFIG_H  -o fix-header fix-header.o \
   scan-decls.o scan.o libcpp.a ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo  ;; esac `  ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
if [ -f fixhdr.ready ] ; then \
        true; \
else \
        touch fixhdr.ready; \
fi
if [ -f libgcc2.ready ] ; then \
        true; \
else \
        touch libgcc2.ready; \
fi
case " c gcov c++ f77 " in \
*" "[cC]"++ "*) \
  echo tinfo.o tinfo2.o new.o opnew.o opnewnt.o opvnew.o opvnewnt.o opdel.o opdelnt.o opvdel.o opvdelnt.o exception.o > cplib2.new;; \
*) \
  echo "" > cplib2.new;; \
esac
mv -f cplib2.new cplib2.txt 
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  ./xgcc -B/sw/i86_56/gcc-X.X/i686-pc-solaris2.6/bin/ -B./ -I/sw/i86_56/gcc-X.X/i686-pc-solaris2.6/include -O2   -DIN_GCC    -W -Wall -O3 -march=pentiumpro -I./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I./config -I./../include -c -DL${name} \
       ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ` if [ -f /tmp/egcs/gcc/../binutils/ar ] ; then echo /tmp/egcs/gcc/../binutils/ar ; else if [ "i686-pc-solaris2.6" = "i686-pc-solaris2.6" ] ; then echo ar; else t='s,x,x,'; echo ar | sed -e $t ; fi; fi` rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
./libgcc2.c: In function `__muldi3':
./libgcc2.c:310: Internal compiler error in `expand_expr', at expr.c:6502
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
gmake[2]: *** [libgcc2.a] Error 1
gmake[2]: Leaving directory `/tmp/egcs/gcc'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/tmp/egcs/gcc'
gmake: *** [bootstrap] Error 2


-- 
Mathias Fr"ohlich              e-mail: frohlich@na.uni-tuebingen.de
Institut f"ur Mathematik, Universit"at T"ubingen, D-72076 T"ubingen


More information about the Gcc-bugs mailing list