This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __APPLE_CC__ defined on head of mainline



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]