From a519efbef81fbd8ae9c4766f878e64ed7a0d8f7d Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Thu, 19 Sep 2019 19:39:30 +0000 Subject: [PATCH] [Darwin, PPC, testsuite] Fix pr89313.c fail. Darwin defines '__POWERPC__' rather than '__powerpc__' so check for the upper case version too in order to select the correct register name. gcc/testsuite: 2019-09-19 Iain Sandoe * gcc.dg/pr89313.c: Test for __POWERPC__ in addition to __powerpc__ in register name selection. From-SVN: r275977 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr89313.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9d6d9830010..7efdac9c250 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-09-19 Iain Sandoe + + * gcc.dg/pr89313.c: Test for __POWERPC__ in addition to + __powerpc__ in register name selection. + 2019-09-19 Richard Henderson * gcc.target/aarch64/atomic-op-acq_rel.c: Use -mno-outline-atomics. diff --git a/gcc/testsuite/gcc.dg/pr89313.c b/gcc/testsuite/gcc.dg/pr89313.c index 6688323fbde..76cb0910b96 100644 --- a/gcc/testsuite/gcc.dg/pr89313.c +++ b/gcc/testsuite/gcc.dg/pr89313.c @@ -8,7 +8,7 @@ # define REG "r0" #elif defined (__i386__) # define REG "%eax" -#elif defined (__powerpc__) +#elif defined (__powerpc__) || defined (__POWERPC__) # define REG "r3" #elif defined (__s390__) # define REG "0" -- 2.30.2