diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2011-10-06 14:05:54 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2011-10-06 10:05:54 -0400 |
commit | 7a9a6698cc1a85333236622281f8042d27cb850e (patch) | |
tree | 55c815ce34b44b3ec9e4b31063c1588c8c334748 /gcc | |
parent | cc49116d66ec581c1d47a324606d24b15b55fb2a (diff) | |
download | gcc-7a9a6698cc1a85333236622281f8042d27cb850e.zip gcc-7a9a6698cc1a85333236622281f8042d27cb850e.tar.gz gcc-7a9a6698cc1a85333236622281f8042d27cb850e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/aix.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e6bf33..96fce89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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, diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index 2c678a3..29eabbb 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"); \ |