public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/61797] New: [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap
@ 2014-07-14  6:34 mikpelinux at gmail dot com
  2014-07-14  6:51 ` [Bug bootstrap/61797] " mikpelinux at gmail dot com
  2014-07-14 10:30 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mikpelinux at gmail dot com @ 2014-07-14  6:34 UTC (permalink / raw)
  To: gcc-bugs

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...


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/61797] [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap
  2014-07-14  6:34 [Bug bootstrap/61797] New: [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap mikpelinux at gmail dot com
@ 2014-07-14  6:51 ` mikpelinux at gmail dot com
  2014-07-14 10:30 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mikpelinux at gmail dot com @ 2014-07-14  6:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61797

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
decl_in_symtab_p is used under #ifdef ENABLE_CHECKING by symtab_get_node (also
in craph.h), and unconditionally by fold-const.c:tree_single_nonzero_warnv_p.

Sticking an __attribute__((__used__)) on decl_in_symtab_p allows bootstrap to
continue, until it hits

build/genmodes: config/i386/i386-modes.def:25: (TF) field format must not be
set
build/genmodes: config/i386/i386-modes.def:24: (XF) field format must not be
set
build/genmodes: machmode.def:203: (DF) field format must not be set
build/genmodes: machmode.def:202: (SF) field format must not be set
build/genmodes: machmode.def:244: (TD) field format must not be set
build/genmodes: machmode.def:243: (DD) field format must not be set
build/genmodes: machmode.def:242: (SD) field format must not be set
make[3]: *** [s-modes-m] Error 1

in stage 3, i.e. PR61757.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/61797] [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap
  2014-07-14  6:34 [Bug bootstrap/61797] New: [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap mikpelinux at gmail dot com
  2014-07-14  6:51 ` [Bug bootstrap/61797] " mikpelinux at gmail dot com
@ 2014-07-14 10:30 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-07-14 10:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61797

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.10.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed by r212511.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-14 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-14  6:34 [Bug bootstrap/61797] New: [4.10 regression] 'bool decl_in_symtab_p(const_tree)' defined but not used error breaks x86_64-linux bootstrap mikpelinux at gmail dot com
2014-07-14  6:51 ` [Bug bootstrap/61797] " mikpelinux at gmail dot com
2014-07-14 10:30 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).