Targets using implicit extern "C"

Zack Weinberg zack@codesourcery.com
Mon May 9 10:50:00 GMT 2005


Ralf Corsepius <ralf.corsepius@rtems.org> writes:

> On Sun, 2005-05-08 at 21:34 -0700, Zack Weinberg wrote:
>> Ralf Corsepius <ralf.corsepius@rtems.org> writes:
>> 
>> > FWIW: IMO, NO_IMPLICIT_EXTERN_C actually is an OS/libc feature ("Your
>> > system headers are c++ aware"), therefore it is hardly possible or
>> > useful to ever use "#define NO_IMPLICIT_EXTERN_C" on "generic" targets
>> > (*-elf, *-coff etc.).
>> 
>> I'm going to ask you to think again about that assessment, because
>> 'implicit extern C' mode is actually trouble if the headers *are* C++
>> aware
>
> The point is: You don't know, because you don't know which kind of
> headers/libc is using a user is going to build gcc against.

This is true.  The question in my mind is which failure mode is worse,
and honestly I don't know.

zw



More information about the Gcc mailing list