From: David Edelsohn Date: Thu, 6 Oct 2011 14:05:54 +0000 (+0000) Subject: re PR c++/39950 (__unix__ macro is not predefined on AIX platform (C and C++)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a9a6698cc1a85333236622281f8042d27cb850e;p=gcc.git re PR c++/39950 (__unix__ macro is not predefined on AIX platform (C and C++)) PR target/39950 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define __powerpc__, __PPC__, __unix__. From-SVN: r179612 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e6bf33416c..96fce899fd2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-10-06 David Edelsohn + + PR target/39950 + * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define + __powerpc__, __PPC__, __unix__. + 2011-10-06 Michael Matz * i386/i386.opt (recip_mask, recip_mask_explicit, diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index 2c678a3a247..29eabbb6fd8 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -97,6 +97,9 @@ { \ builtin_define ("_IBMR2"); \ builtin_define ("_POWER"); \ + builtin_define ("__powerpc__"); \ + builtin_define ("__PPC__"); \ + builtin_define ("__unix__"); \ builtin_define ("_AIX"); \ builtin_define ("_AIX32"); \ builtin_define ("_AIX41"); \