diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2015-11-11 04:01:30 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2015-11-10 23:01:30 -0500 |
commit | f83cab84d547f6cf2b5962b19e4789e1662d469b (patch) | |
tree | 9f3e3d6ee36ee5dc4eacc40c8c7ed60b4c23f65a | |
parent | e68ffe57f277b5c459ba63d97a8ba8cff50f0e86 (diff) | |
download | gcc-f83cab84d547f6cf2b5962b19e4789e1662d469b.zip gcc-f83cab84d547f6cf2b5962b19e4789e1662d469b.tar.gz gcc-f83cab84d547f6cf2b5962b19e4789e1662d469b.tar.bz2 |
aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and machine asserts.
* config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
machine asserts. Update defines for 64 bit.
From-SVN: r230145
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/aix.h | 18 |
2 files changed, 21 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 318de8f..ea15ada 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-11 David Edelsohn <dje.gcc@gmail.com> + + * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and + machine asserts. Update defines for 64 bit. + 2015-11-11 Charles Baylis <charles.baylis@linaro.org> PR target/63870 diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index dbcfb95..375a13e 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -101,8 +101,6 @@ { \ builtin_define ("_IBMR2"); \ builtin_define ("_POWER"); \ - builtin_define ("__powerpc__"); \ - builtin_define ("__PPC__"); \ builtin_define ("__unix__"); \ builtin_define ("_AIX"); \ builtin_define ("_AIX32"); \ @@ -112,6 +110,22 @@ builtin_define ("__LONGDOUBLE128"); \ builtin_assert ("system=unix"); \ builtin_assert ("system=aix"); \ + if (TARGET_64BIT) \ + { \ + builtin_define ("__PPC__"); \ + builtin_define ("__PPC64__"); \ + builtin_define ("__powerpc__"); \ + builtin_define ("__powerpc64__"); \ + builtin_assert ("cpu=powerpc64"); \ + builtin_assert ("machine=powerpc64"); \ + } \ + else \ + { \ + builtin_define ("__PPC__"); \ + builtin_define ("__powerpc__"); \ + builtin_assert ("cpu=powerpc"); \ + builtin_assert ("machine=powerpc"); \ + } \ } \ while (0) |