This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bootstrap/5888: Bootstrap stage 2/3 comparison failure gcc-3.0.4



>Number:         5888
>Category:       bootstrap
>Synopsis:       Bootstrap stage 2/3 comparison failure gcc-3.0.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 08 11:06:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     nirkko
>Release:        gcc-3.0.4
>Organization:
>Environment:
sun sparc solaris 2.6
>Description:
bootstrap comparison failure with gcc-3.0.4
(but not previous versions 3.0.1 and earlier 2.95, 2.8.1)
when using non-standard CFLAGS for bootstrap, which
include -O3. it seems that part of the compilation uses
the given non-standard flags incl -O3, others use -O2 anyway.
-O3 etc were never a problem in earlier versions.
output of comparison at end, see below (how-to-repeat)
>How-To-Repeat:
setenv CONFIG_SHELL /bin/ksh
setenv CCFLAGS "-Wall -fPIC -O3 -funroll-loops -msupersparc -Qn -Wa,-Qn  -fno-ident -fno-implicit-templates -s"
    $DIRSRC_BUILD/configure \
      --prefix=${DIR_PREFIX} --disable-shared \
      --enable-threads \
      --with-cpu=supersparc --enable-cpp \
      --enable-version-specific-runtime-libs \
      --disable-nls \
    && (  gmake CONFIG_SHELL=/bin/ksh \
               BOOT_CFLAGS="$CCFLAGS" \
               CFLAGS="$CCFLAGS" \
               LIBCFLAGS="$CCFLAGS" \
               LIBCXXFLAGS="$CCFLAGS -no-implicit-templates" \
               bootstrap \
       )

results in ( after 5 hr of correct compilation ):
Bootstrap comparison failure!
crtbegin.o differs
gcov.o differs
ggc-common.o differs
global.o differs
gmon.o differs
local-alloc.o differs
profile.o differs
toplev.o differs
gmake[1]: *** [compare] Error 1
gmake[1]: Leaving directory `/_mnt/hd2/package/gcc/gcc-3.0.4-static-bimbo2.6-obj/gcc'
gmake: *** [bootstrap] Error 2

assembler found is gas from binutils 2.11.2
linker is /usr/ccs/bin/ld
gcc to start bootstrap with is gcc-3.0.1
(created with same options, and always worked fine)
>Fix:
probably compilation with standard flags would work
(as has been reported for Solaris 2.6). However,
these same flags worked fine up to and including gcc-3.0.1
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]