[PATCH] rs6000: Fix new testcase

Segher Boessenkool segher@kernel.crashing.org
Wed Jun 5 16:22:00 GMT 2019


At least with -m32 you need -maltivec if you #include <altivec.h>.
Tested on powerpc64-linux {-m32,-m64); committing to trunk.


Segher


2019-06-05  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
	* g++.target/powerpc/undef-bool-3.C: Add -maltivec to dg-options.

---
 gcc/testsuite/g++.target/powerpc/undef-bool-3.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.target/powerpc/undef-bool-3.C b/gcc/testsuite/g++.target/powerpc/undef-bool-3.C
index 27f3da5..b4e18bd 100644
--- a/gcc/testsuite/g++.target/powerpc/undef-bool-3.C
+++ b/gcc/testsuite/g++.target/powerpc/undef-bool-3.C
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -std=c++11" } */
+/* { dg-options "-O2 -std=c++11 -maltivec" } */
 
 /* Test to ensure that "bool" is not #define'd in altivec.h for C++ when
    we require strict ANSI.  We should compile without errors.  */
-- 
1.8.3.1



More information about the Gcc-patches mailing list