[Darwin,Testsuite,PPC] Fix failing PR87600.

Message ID E60D2A9F-A18D-45B3-823B-516A72214432@sandoe.co.uk
State New
Headers show
Series
  • [Darwin,Testsuite,PPC] Fix failing PR87600.
Related show

Commit Message

Iain Sandoe May 15, 2019, 7:27 a.m.
This test fails on powerpc-darwin, because the platform
emits __POWERPC__ rather than __powerpc__.  

Fixed thus, tested on powerpc-darwin9, powerpc-linux-gnu.
Applied to mainline.
Iain

gcc/testsuite/

 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
 
	* gcc.dg/pr87600.h: Add __POWERPC__ as an alternate test
	for PowerPC platforms.

Patch

diff --git a/gcc/testsuite/gcc.dg/pr87600.h b/gcc/testsuite/gcc.dg/pr87600.h
index 5ebb928..af91f63 100644
--- a/gcc/testsuite/gcc.dg/pr87600.h
+++ b/gcc/testsuite/gcc.dg/pr87600.h
@@ -7,7 +7,7 @@ 
 #elif defined (__i386__)
 # define REG1 "%eax"
 # define REG2 "%edx"
-#elif defined (__powerpc__)
+#elif defined (__powerpc__) || defined (__POWERPC__)
 # define REG1 "r3"
 # define REG2 "r4"
 #elif defined (__s390__)