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"



On May 8, 2005, at 7:34 PM, Joseph S. Myers wrote:

In particular, I'm surprised at the Darwin configurations apparently not defining NO_IMPLICIT_EXTERN_C, and at most OpenBSD configurations not doing so (but alpha-openbsd gets it from alpha/alpha.h); VxWorks configurations are also inconsistent in this regard (powerpc-wrs-vxworks gets it from rs6000/sysv4.h). If NO_IMPLICIT_EXTERN_C were defined in elfos.h that would massively reduce the number of targets which do not define it (and therefore the number needing changing to replace NO_IMPLICIT_EXTERN_C by an IMPLICIT_EXTERN_C macro with the opposite sense).

Darwin still needs NO_IMPLICIT_EXTERN_C, at least before 8.0 because the mach headers were not C++ aware. I know I repeat this every time this comes up.

Thanks,
Andrew Pinski


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