https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61797
Bug ID: 61797 Summary: [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Attempting to bootstrap gcc-4.10-20140713 (r212499) on x86_64-linux fails with: /mnt/scratch/objdir410/./prev-gcc/xg++ -B/mnt/scratch/objdir410/./prev-gcc/ -B/mnt/scratch/install410/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/mnt/scratch/objdir410/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/mnt/scratch/objdir410/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/mnt/scratch/objdir410/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/mnt/scratch/objdir410/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/mnt/scratch/gcc-4.10-20140713/libstdc++-v3/libsupc++ -L/mnt/scratch/objdir410/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/mnt/scratch/objdir410/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -DHAVE_CONFIG_H -I. -Ic -I/mnt/scratch/gcc-4.10-20140713/gcc -I/mnt/scratch/gcc-4.10-20140713/gcc/c -I/mnt/scratch/gcc-4.10-20140713/gcc/../include -I/mnt/scratch/gcc-4.10-20140713/gcc/../libcpp/include -I/home/mikpe/pkgs/linux-x86_64/gmp-5.1.3/include -I/home/mikpe/pkgs/linux-x86_64/mpfr-3.1.2/include -I/home/mikpe/pkgs/linux-x86_64/mpc-1.0.2/include -I/mnt/scratch/gcc-4.10-20140713/gcc/../libdecnumber -I/mnt/scratch/gcc-4.10-20140713/gcc/../libdecnumber/bid -I../libdecnumber -I/mnt/scratch/gcc-4.10-20140713/gcc/../libbacktrace -o c/c-decl.o -MT c/c-decl.o -MMD -MP -MF c/.deps/c-decl.TPo /mnt/scratch/gcc-4.10-20140713/gcc/c/c-decl.c In file included from /mnt/scratch/gcc-4.10-20140713/gcc/c/c-decl.c:59:0: /mnt/scratch/gcc-4.10-20140713/gcc/cgraph.h:1158:1: error: 'bool decl_in_symtab_p(const_tree)' defined but not used [-Werror=unused-function] decl_in_symtab_p (const_tree decl) ^ cc1plus: all warnings being treated as errors make[3]: *** [c/c-decl.o] Error 1 make[3]: Leaving directory `/mnt/scratch/objdir410/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/mnt/scratch/objdir410' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/mnt/scratch/objdir410' make: *** [bootstrap] Error 2 The previous weekly snapshot, 4.10-20140706 (r212315) bootstrapped fine. Configuration options: /mnt/scratch/gcc-4.10-20140713/configure --prefix=/mnt/scratch/install410 --with-gmp=/home/mikpe/pkgs/linux-x86_64/gmp-5.1.3 --with-mpfr=/home/mikpe/pkgs/linux-x86_64/mpfr-3.1.2 --with-mpc=/home/mikpe/pkgs/linux-x86_64/mpc-1.0.2 --disable-plugin --disable-lto --disable-nls --enable-threads=posix --enable-checking=release --disable-libmudflap --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go Now trying to continue with a manual hack to silence the above error...