re PR c++/39950 (__unix__ macro is not predefined on AIX platform (C and C++))
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 6 Oct 2011 14:05:54 +0000 (14:05 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 6 Oct 2011 14:05:54 +0000 (10:05 -0400)
        PR target/39950
        * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
        __powerpc__, __PPC__, __unix__.

From-SVN: r179612

gcc/ChangeLog
gcc/config/rs6000/aix.h

index 7e6bf33416cfa362787ac238a7d729be160e2a92..96fce899fd2098aedbd277bf92e085deda6506ef 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
+
+       PR target/39950
+       * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
+       __powerpc__, __PPC__, __unix__.
+
 2011-10-06  Michael Matz  <matz@suse.de>
 
        * i386/i386.opt (recip_mask, recip_mask_explicit,
index 2c678a3a247921427a2b5e233ecdea13a31645c3..29eabbb6fd8b5258b0b5c498837d9587308c6b04 100644 (file)
@@ -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");               \