On 2012-08-19 07:18 , Arnaud Charlet wrote:
The conditionals cannot be removed for the time being because the
foreign language interface of the Ada part of the compiler is
hardcoded for C.
Barring a massive switch to the Ada language for the GNU project,
we would need to switch the foreign language interface to C++,
which might introduce various maintenance issues in the short term
(Arno CCed).
Yes, that would be a large hearthquake for both the compiler and the
run-time, which is unwanted at this stage. I guess the solution for
now is to more selectively export the various symbols as C symbols
and include header files as is.
Thanks.
One potential issue I see here is that as we start using more C++
headers (and more C++ in existing headers), we will reach a point in
which including something like system.h inside an extern "C" {} block
will fail.
None of the GCC headers should be included as C code anymore.
Diego.