aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and machine asserts.
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 11 Nov 2015 04:01:30 +0000 (04:01 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 11 Nov 2015 04:01:30 +0000 (23:01 -0500)
* config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
machine asserts.  Update defines for 64 bit.

From-SVN: r230145

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

index 318de8ff54de7ca2ad8c895835c44aab7e7d72e6..ea15ada40f899c8b9b0a164d395e3c9440a2f475 100644 (file)
@@ -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
index dbcfb9579cbc23a4855c865feaaba8e250eeaf73..375a13edb27cbed58531b1825b3f9a59cb77b4b0 100644 (file)
     {                                          \
       builtin_define ("_IBMR2");               \
       builtin_define ("_POWER");               \
-      builtin_define ("__powerpc__");           \
-      builtin_define ("__PPC__");               \
       builtin_define ("__unix__");              \
       builtin_define ("_AIX");                 \
       builtin_define ("_AIX32");               \
         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)