summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-08 05:02:55 +0000
committerzlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-08 05:02:55 +0000
commit718a2160eee0dbeb4bd668bf32d17d04c7183e25 (patch)
treee617b09f77b399950e4f3aeb0d58ff4e9c80a52e
parente5381fcfe7c7617765098c92469282231161f163 (diff)
downloadppe42-gcc-718a2160eee0dbeb4bd668bf32d17d04c7183e25.tar.gz
ppe42-gcc-718a2160eee0dbeb4bd668bf32d17d04c7183e25.zip
2004-05-07 Ziemowit Laski <zlaski@apple.com>
* config/rs6000/altivec.h (vector, pixel, bool): Do not define as macros #ifdef __APPLE_ALTIVEC__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81641 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/rs6000/altivec.h7
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f50b1060ab8..0c3f1cdf1be 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,10 @@
-2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
+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>
+
* config/rs6000/rs6000.c (rs6000_mixed_function_arg):
Generate appropriate parallels for vector arguments
passed to vararg functions. (function_arg): make the call
diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h
index 44eae871e98..8e07778bb12 100644
--- a/gcc/config/rs6000/altivec.h
+++ b/gcc/config/rs6000/altivec.h
@@ -36,10 +36,17 @@
#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. */
+
+#if !defined(__APPLE_ALTIVEC__)
/* You are allowed to undef these for C++ compatibility. */
#define vector __vector
#define pixel __pixel
#define bool __bool
+#endif
/* Condition register codes for AltiVec predicates. */
OpenPOWER on IntegriCloud