diff options
Diffstat (limited to 'gcc/config/rs6000/altivec.h')
-rw-r--r-- | gcc/config/rs6000/altivec.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h index 0447d9e1fc4..13902ab3b59 100644 --- a/gcc/config/rs6000/altivec.h +++ b/gcc/config/rs6000/altivec.h @@ -36,17 +36,18 @@ #error Use the "-maltivec" flag to enable PowerPC AltiVec support #endif -/* If __APPLE_ALTIVEC__ is defined, the compiler supports 'vector', - 'pixel' and 'bool' as context-sensitive AltiVec keywords (in - non-AltiVec contexts, they revert to their original meanings, - if any), so we do not need to define them as macros. */ +/* APPLE LOCAL begin AltiVec */ +/* If __APPLE_ALTIVEC__ is defined, the compiler has internally + synthesized the definitions contained in this header. */ -#if !defined(__APPLE_ALTIVEC__) +#if defined(__APPLE_ALTIVEC__) +#warning Ignoring <altivec.h> because "-faltivec" specified +#else /* You are allowed to undef these for C++ compatibility. */ #define vector __vector #define pixel __pixel #define bool __bool -#endif +/* APPLE LOCAL end AltiVec */ /* Condition register codes for AltiVec predicates. */ @@ -11569,5 +11570,7 @@ __ch (__bin_args_eq (__vector float, (a1), __vector float, (a2)), \ #endif /* __cplusplus */ +/* APPLE LOCAL AltiVec */ +#endif /* __APPLE_ALTIVEC__ */ #endif /* _ALTIVEC_H */ |