__APPLE_CC__ defined on head of mainline
Timothy J.Wood
tjw@omnigroup.com
Sun Jan 2 03:23:00 GMT 2005
On Dec 31, 2004, at 11:09 AM, Devang Patel wrote:
> Try __APPLE_ALTIVEC__
Apple's compiler doesn't seem to define this macro:
% touch /tmp/foo.c; cc -faltivec -dM -E /tmp/foo.c | grep ALTIVEC
#define __ALTIVEC__ 1
% uname -a
Darwin tjw 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST
2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC Power Macintosh powerpc
The FSF sources mention it only as:
./gcc/config/rs6000/altivec.h:/* If __APPLE_ALTIVEC__ is defined, the
compiler supports 'vector',
./gcc/config/rs6000/altivec.h:#if !defined(__APPLE_ALTIVEC__)
So, my search for a way to determine the correct vector syntax at
compile time continues.
-tim
More information about the Gcc
mailing list