Booting with CC=/usr/bin/cc (because booting with a fresh gcc is broken), I get

cc   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-fno-common   -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o
c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o
c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o
c-parser.o  c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o
dummy-checksum.o \
          main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a
libbackend.a(tree-ssa-loop-manip.o): In function `create_iv':
../../../gcc/trunk/gcc/tree-ssa-loop-manip.c:63: undefined reference to
`add_referenced_var'
libbackend.a(tree-ssa-loop-manip.o): In function `tree_unroll_loop':
../../../gcc/trunk/gcc/tree-ssa-loop-manip.c:919: undefined reference to
`add_referenced_var'
libbackend.a(tree-ssa-loop-im.o): In function `determine_invariantness_stmt':
../../../gcc/trunk/gcc/tree-ssa-loop-im.c:627: undefined reference to
`add_referenced_var'
libbackend.a(tree-tailcall.o): In function `adjust_accumulator_values':
../../../gcc/trunk/gcc/tree-tailcall.c:565: undefined reference to
`add_referenced_var'
libbackend.a(tree-tailcall.o): In function `adjust_return_value':
../../../gcc/trunk/gcc/tree-tailcall.c:644: undefined reference to
`add_referenced_var'
libbackend.a(tree-tailcall.o):../../../gcc/trunk/gcc/tree-tailcall.c:659: more
undefined references to `add_referenced_var' follow
collect2: ld returned 1 exit status
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory `/home/ig25/gcc-bin/trunk/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/ig25/gcc-bin/trunk'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/ig25/gcc-bin/trunk'
make: *** [bootstrap] Error 2
$

configure command was

CC=cc ../../gcc/trunk/configure --prefix=$HOME --enable-languages=c,fortran

cc is 
$ cc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)


-- 
           Summary: add_referenced_var missing on bootstrap
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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

Reply via email to