This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ bootstrap of GCC - still useful ?


> When I configure with
>     --enable-build-with-cxx --enable-languages=c,c++,ada
> I get the appended.  The problem is that the Ada code is looking for C
> symbol names but the names in the .o files are mangled for C++.

OK, this is known: a couple of tweaks to the Makefile (to use g++ instead of 
gcc to link) are needed and extern "C" must be added all over the place, see:
  http://gcc.gnu.org/ml/gcc/2009-06/msg00635.html

I can post an updated patch if you want, but saying that the Ada front-end 
blocks the use of C++ in gcc is unfair; it is (and has always been) neutral.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]