This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RS6000 buried treasure - NO_IMPLICIT_EXTERN_C
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 08 Nov 2002 10:56:24 -0500
- Subject: Re: RS6000 buried treasure - NO_IMPLICIT_EXTERN_C
- References: <20021108045045.GN795@egil.codesourcery.com>
> 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