From 3e12a883166d6e70d568a499baac61b09478099c Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sat, 3 Aug 2019 19:25:05 +0000 Subject: [PATCH] Darwin, ppc, backport test fixes. Some tests expect upper case versions of the ppc/ppc64 macros, so bring Darwin into line with other port members. 2019-08-03 Iain Sandoe Backport from mainline 2019-06-23 Iain Sandoe * config/rs6000/darwin.h: (__PPC__, __PPC64__): New. From-SVN: r274041 --- gcc/ChangeLog | 7 +++++++ gcc/config/rs6000/darwin.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a967df1bd2e8..3d4cb6ce719b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-08-03 Iain Sandoe + + Backport from mainline + 2019-06-23 Iain Sandoe + + * config/rs6000/darwin.h: (__PPC__, __PPC64__): New. + 2019-08-02 Martin Sebor Backport from mainline diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 9fb36e41e7dc..47f34db590e2 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); \ -- 2.47.2