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