mirror of git://gcc.gnu.org/git/gcc.git
altivec.h (vector, [...]): Do not define as macros #ifdef __APPLE_ALTIVEC__.
2004-05-07 Ziemowit Laski <zlaski@apple.com> * config/rs6000/altivec.h (vector, pixel, bool): Do not define as macros #ifdef __APPLE_ALTIVEC__. From-SVN: r81641
This commit is contained in:
parent
6fe76f1d7e
commit
f95d927202
|
@ -1,4 +1,10 @@
|
||||||
|
2004-05-07 Ziemowit Laski <zlaski@apple.com>
|
||||||
|
|
||||||
|
* config/rs6000/altivec.h (vector, pixel, bool): Do not
|
||||||
|
define as macros #ifdef __APPLE_ALTIVEC__.
|
||||||
|
|
||||||
2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
|
2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
|
||||||
|
|
||||||
* config/rs6000/rs6000.c (rs6000_mixed_function_arg):
|
* config/rs6000/rs6000.c (rs6000_mixed_function_arg):
|
||||||
Generate appropriate parallels for vector arguments
|
Generate appropriate parallels for vector arguments
|
||||||
passed to vararg functions. (function_arg): make the call
|
passed to vararg functions. (function_arg): make the call
|
||||||
|
|
|
@ -36,10 +36,17 @@
|
||||||
#error Use the "-maltivec" flag to enable PowerPC AltiVec support
|
#error Use the "-maltivec" flag to enable PowerPC AltiVec support
|
||||||
#endif
|
#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. */
|
||||||
|
|
||||||
|
#if !defined(__APPLE_ALTIVEC__)
|
||||||
/* You are allowed to undef these for C++ compatibility. */
|
/* You are allowed to undef these for C++ compatibility. */
|
||||||
#define vector __vector
|
#define vector __vector
|
||||||
#define pixel __pixel
|
#define pixel __pixel
|
||||||
#define bool __bool
|
#define bool __bool
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Condition register codes for AltiVec predicates. */
|
/* Condition register codes for AltiVec predicates. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue