Rebuilding gcc rev. 132160 from scratch failed with: ... /opt/gcc/i686-darwin/./prev-gcc/xgcc -B/opt/gcc/i686-darwin/./prev-gcc/ -B/opt/gcc/gcc4.3w/i686-apple-darwin9/bin/ -c -g -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -DOBJCPLUS -I../../gcc-4.3-work/gcc/objc -I../../gcc-4.3-work/gcc/cp -fno-common -DHAVE_CONFIG_H -I. -Iobjcp -I../../gcc-4.3-work/gcc -I../../gcc-4.3-work/gcc/objcp -I../../gcc-4.3-work/gcc/../include -I./../intl -I../../gcc-4.3-work/gcc/../libcpp/include -I/sw/include -I../../gcc-4.3-work/gcc/../libdecnumber -I../../gcc-4.3-work/gcc/../libdecnumber/dpd -I../libdecnumber ../../gcc-4.3-work/gcc/objcp/objcp-decl.c -o objcp/objcp-decl.o cc1: warnings being treated as errors ../../gcc-4.3-work/gcc/objcp/objcp-decl.c: In function 'objcp_comptypes': ../../gcc-4.3-work/gcc/objcp/objcp-decl.c:98: error: implicit declaration of function 'comptypes' Note that it is again a "cc1: warnings being treated as errors".
See also http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00195.html
This is fallout from my comptypes patch.
Subject: Bug 35115 Author: dgregor Date: Thu Feb 7 19:03:40 2008 New Revision: 132173 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132173 Log: 2008-02-06 Douglas Gregor <doug.gregor@gmail.com> * g++.dg/ext/vector13.C: Fix for compilation under -pedantic. 2008-02-07 Andreas Tobler <andreast-list@fgznet.ch> Douglas Gregor <doug.gregor@gmail.com> PR bootstrap/35115 * objcp-decl.c (objcp_comptypes): Call cp_comptypes, not comptypes. Modified: trunk/gcc/objcp/ChangeLog trunk/gcc/objcp/objcp-decl.c
Fixed.
Subject: Bug 35115 Author: bonzini Date: Fri Mar 7 11:47:20 2008 New Revision: 133007 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133007 Log: cp: 2008-03-07 Paolo Bonzini <bonzini@gnu.org> Revert: 2008-02-06 Douglas Gregor <doug.gregor@gmail.com> PR c++/35049 PR c++/35096 * typeck.c (structural_comptypes): Call cp_comptypes. (comptypes): New; called from the C/C++ common bits to perform strict checks. (cp_comptypes): Renamed from comptypes, which is already used, with a different signature, by the C++ front end. (build_reinterpret_cast_1): Call cp_comptypes. (ptr_reasonably_similar): Ditto. * decl.c (decls_match): Ditto. * cvt.c (convert_to_reference): Ditto. * cp-tree.h (same_type_p): Ditto. (same_or_base_type_p): Ditto. (comptypes): Rename to cp_comptypes. * pt.c (canonical_type_parameter): Call cp_comptypes. objcp: 2008-03-07 Paolo Bonzini <bonzini@gnu.org> Revert: 2008-02-07 Andreas Tobler <andreast-list@fgznet.ch> Douglas Gregor <doug.gregor@gmail.com> PR bootstrap/35115 * objcp-decl.c (objcp_comptypes): Call cp_comptypes, not comptypes. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/cvt.c trunk/gcc/cp/decl.c trunk/gcc/cp/pt.c trunk/gcc/cp/typeck.c trunk/gcc/objcp/ChangeLog trunk/gcc/objcp/objcp-decl.c