aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-06-23 19:13:08 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-06-23 19:13:08 +0000
commit64ce6cc2de07d6d898b8dcaa6cc262caa52c8fd3 (patch)
tree8451b41884fb7d2a2fe074fd884d0dcd052ce0ba /gcc
parent63e6229c4dc1af804c08dd55f83e2facfcbcb996 (diff)
downloadgcc-64ce6cc2de07d6d898b8dcaa6cc262caa52c8fd3.zip
gcc-64ce6cc2de07d6d898b8dcaa6cc262caa52c8fd3.tar.gz
gcc-64ce6cc2de07d6d898b8dcaa6cc262caa52c8fd3.tar.bz2
[Darwin, PPC] Emit uppercase versions of ppc defines.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/darwin.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d2dd391..d12048e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index ee949f2..2df617d 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -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); \