From 7a9a6698cc1a85333236622281f8042d27cb850e Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 6 Oct 2011 14:05:54 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/aix.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e6bf33416cf..96fce899fd20 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 2c678a3a2479..29eabbb6fd8b 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"); \ -- 2.43.5