Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-09-13 Thread Ian Lance Taylor
Jerry Quinn writes: > Index: include/libiberty.h > === > --- include/libiberty.h (revision 149964) > +++ include/libiberty.h (working copy) > @@ -100,7 +100,7 @@ > declaration without arguments. If it is 0, we checke

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-09-13 Thread Jerry Quinn
Ralf Wildenhues wrote: > * Pedro LamarÃo wrote on Thu, Aug 27, 2009 at 12:24:07AM CEST: > > 2009/8/26 Ralf Wildenhues: > > > > >> The problem is that AC_CHECK_DECLS gets confused by overloaded > > >> functions, and glibc 2.10 has overloaded declarations of basename > > >> and some other string fun

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-09-10 Thread Pedro Lamarão
2009/9/10 Ralf Wildenhues : > * Pedro Lamarão wrote on Thu, Aug 27, 2009 at 12:24:07AM CEST: >> 2009/8/26 Ralf Wildenhues: >> I think this is new in glibc 2.10, for the reasons given by Jason Merrill >> above. >> I've discussed this problem with Jerry Quinn before, and he had a >> tentative patch

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-09-10 Thread Ralf Wildenhues
* Pedro Lamarão wrote on Thu, Aug 27, 2009 at 12:24:07AM CEST: > 2009/8/26 Ralf Wildenhues: > > >> >.../../trunk/libcpp/../include/libiberty.h:106: error: new declaration > >> >‘char* basename(const char*)’ > >> >/usr/include/string.h:601: error: ambiguates old declaration ‘const > >> >char* basen

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-08-27 Thread Jason Merrill
On 08/26/2009 05:36 PM, Ralf Wildenhues wrote: * Jason Merrill wrote on Wed, Aug 26, 2009 at 10:32:05PM CEST: The problem is that AC_CHECK_DECLS gets confused by overloaded functions, and glibc 2.10 has overloaded declarations of basename and some other string functions for const-correctness.

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-08-26 Thread Pedro Lamarão
2009/8/26 Ralf Wildenhues : >> >.../../trunk/libcpp/../include/libiberty.h:106: error: new declaration >> >‘char* basename(const char*)’ >> >/usr/include/string.h:601: error: ambiguates old declaration ‘const >> >char* basename(const char*)’ >> >> The problem is that AC_CHECK_DECLS gets confused b

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-08-26 Thread Ralf Wildenhues
* Jason Merrill wrote on Wed, Aug 26, 2009 at 10:32:05PM CEST: > On 08/03/2009 04:09 PM, Pedro Lamarão wrote: > >Current trunk (revision 150381) fails to bootstrap with the following > >configuration: > > >.../../trunk/libcpp/../include/libiberty.h:106: error: new declaration > >‘char* basename(co

Re: [gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-08-26 Thread Jason Merrill
On 08/03/2009 04:09 PM, Pedro Lamarão wrote: Current trunk (revision 150381) fails to bootstrap with the following configuration: .../../trunk/libcpp/../include/libiberty.h:106: error: new declaration ‘char* basename(const char*)’ /usr/include/string.h:601: error: ambiguates old declaration ‘c

[gcc-in-cxx] Trunk fails to bootstrap with --enable-build-with-cxx

2009-08-03 Thread Pedro Lamarão
Current trunk (revision 150381) fails to bootstrap with the following configuration: [pedro.lama...@larissa trunk-obj]$ ../trunk/configure --prefix=/opt/gcc-4.5 --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-