[Darwin, PPC] Emit uppercase versions of ppc defines.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 23 Jun 2019 19:13:08 +0000 (19:13 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 23 Jun 2019 19:13:08 +0000 (19:13 +0000)
Emit __PPC__ (32b) and __PPC64__ (64bit) as per the other members
of the PowerPC port.

2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h: (__PPC__, __PPC64__): New.

From-SVN: r272602

gcc/ChangeLog
gcc/config/rs6000/darwin.h

index d2dd391b39c0d571828caefbc2193a09408c3f80..d12048e9c1801445004381d87063b46f0758ba84 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
+
 2019-06-22  Jeff Law  <law@redhat.com>
 
        * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
index ee949f2da40a433f558eb5f97d201e23bad2b80b..2df617dc6c235360cc5c51def02e39cf15d2050c 100644 (file)
@@ -54,7 +54,9 @@
   do                                                   \
     {                                                  \
       if (!TARGET_64BIT) builtin_define ("__ppc__");   \
+      if (!TARGET_64BIT) builtin_define ("__PPC__");   \
       if (TARGET_64BIT) builtin_define ("__ppc64__");  \
+      if (TARGET_64BIT) builtin_define ("__PPC64__");  \
       builtin_define ("__POWERPC__");                  \
       builtin_define ("__NATURAL_ALIGNMENT__");                \
       darwin_cpp_builtins (pfile);                     \