Prof A Olowofoyeku (The African Chief) wrote:
What is in your "specs" file? (AFAIU, that is where the predefines are).
*cpp_unique_options: __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__
And, is your gpc using the same specs file as your gcc?
For the same version of gcc it does.
If they are using the same specs file, then you should get similar predefines
They aren't in the specs file, but I found them in gcc/config/rs6000/darwin.h
#define TARGET_OS_CPP_BUILTINS() \ do \ { \ builtin_define ("__ppc__"); \ builtin_define ("__POWERPC__"); \ builtin_define ("__NATURAL_ALIGNMENT__"); \ builtin_define ("__MACH__"); \ builtin_define ("__APPLE__"); \ } \ while (0)
Regards,
Adriaan van Os