This is the mail archive of the gcc-patches@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: RS6000 buried treasure - NO_IMPLICIT_EXTERN_C


> Of all the targets using config/rs6000, only *-linux* and *-windiss*
> define NO_IMPLICIT_EXTERN_C.  This just bit me good and hard while
> trying to use powerpc-eabisimaltivec -- altivec.h assumes it is safe
> to use C++ constructs which will spew errors under extern "C".
>
> I am inclined to enable NO_IMPLICIT_EXTERN_C for the entire directory,
> in rs6000.h.  What few targets this is inappropriate for -- I'm
> willing to bet that's either none, or only AIX 3.1 -- can #undef it
> again.
>
> Comments?

	I could see placing this in sysv4.h, but not rs6000.h.  I do not
believe that GCC's fixincludes completely addresses the C++ issues in the
AIX header files.  IBM Visual Age C++ distributes its own system header
files.

David


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