Re: [Ada] Fix --enable-build-with-cxx build

2011-07-21 Thread Eric Botcazou
> Revised version, only 33 files modified now (instead of 51). We compile > the C files for the compiler proper (and gnatbind) with the C++ compiler, > but we keep compiling them with the C compiler in the other cases (library > & tools). I think that this is in keeping with the other compilers (e

Re: [Ada] Fix --enable-build-with-cxx build

2011-07-12 Thread Eric Botcazou
> Certainly looks better to me. Thanks, applied. In any case, it's only a quantitative issue: since gigi will very likely use C++ features at some point, it needs to be compiled with the C++ compiler, which means that all the FE headers must be extern "C". So half of the 33 files must be modi

Re: [Ada] Fix --enable-build-with-cxx build

2011-07-12 Thread Arnaud Charlet
> Revised version, only 33 files modified now (instead of 51). We compile the C > files for the compiler proper (and gnatbind) with the C++ compiler, but we > keep compiling them with the C compiler in the other cases (library & tools). > I think that this is in keeping with the other compilers (e

Re: [Ada] Fix --enable-build-with-cxx build

2011-07-12 Thread Eric Botcazou
> This is an updated version of Laurent's patch originally here: > http://gcc.gnu.org/ml/gcc/2009-06/msg00635.html Revised version, only 33 files modified now (instead of 51). We compile the C files for the compiler proper (and gnatbind) with the C++ compiler, but we keep compiling them with

Re: [Ada] Fix --enable-build-with-cxx build

2011-07-12 Thread Rainer Orth
Eric Botcazou writes: > gcc/ > * prefix.h: Wrap up in extern "C" block. > > ada/ > * adadecode.c: Likewise. No `Likewise.' in different ChangeLogs :-) Rainer -- - Rainer Orth, Center for Biotechnol

[Ada] Fix --enable-build-with-cxx build

2011-07-11 Thread Eric Botcazou
This is an updated version of Laurent's patch originally here: http://gcc.gnu.org/ml/gcc/2009-06/msg00635.html Bootstrapped/regtested on x86_64-suse-linux with --enable-build-with-cxx. Arno, I think we should apply it. This isn't very intrusive in the end and with it we can go full C++ instea