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: Targets using implicit extern "C"


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 -- look back through the bug database for cases.  And my
suspicion is that nowadays, the headers that generic targets do have
are more likely to be C++ aware than not.

zw


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