On 3/24/06, Joshua Uziel <joshua.uziel at sun.com> wrote: > Hey guys, had a question about the expected defines as set by the > compiler. It looks like "__ppc" is what is currently expected to be > used, but if you "touch empty.c" and run "powerpc-solaris2-gcc -dD -xc > -E empty.c", you see: > > ... > #define __PPC 1 > #define __PPC__ 1 > #define PPC 1 > ... > > (Thanks to Keith Wesolowsi for pointing that feature out to me.) This > can be changed in either the header files or in the compiler... it > strikes me as though it should be done in the compiler and it should > define both __PPC and __ppc variants, etc. Comments?
Josh, that is one of the known problems with the kit you are using. It should define __powerpc and then there is a a shortcut __ppc which also can be defined. Also sys/isa_defs.h defines __ppc if it detects that the latter is missing. This is fixed with the latest test kit found on Polaris trac site. It is somewhat late, but I eventually get to formally release it :) -- Regards, Cyril