* [Darwin, PPC, committed] Emit uppercase versions of ppc defines.
@ 2019-06-23 19:17 Iain Sandoe
0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2019-06-23 19:17 UTC (permalink / raw)
To: GCC Patches; +Cc: segher Boessenkool
Emit __PPC__ (32b) and __PPC64__ (64bit) as per the other members
of the PowerPC port. Darwin has always emitted __ppc__ and __ppc64__
but some testcases rely on the upper case variants.
tested on powerpc-darwin9, applied to mainline.
thanks
Iain
2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
* config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
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); \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-23 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-23 19:17 [Darwin, PPC, committed] Emit uppercase versions of ppc defines Iain Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).