From a637fd40b338afa328601b126bdb6356a1f14e0c Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 5 Jun 2019 18:21:07 +0200 Subject: [PATCH] rs6000: Fix new testcase At least with -m32 you need -maltivec if you #include . gcc/testsuite/ * g++.target/powerpc/undef-bool-3.C: Add -maltivec to dg-options. From-SVN: r271966 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.target/powerpc/undef-bool-3.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 457970ede45..bc521344987 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-06-05 Segher Boessenkool + + * g++.target/powerpc/undef-bool-3.C: Add -maltivec to dg-options. + 2019-06-05 Martin Sebor * gcc.dg/weak/weak-19.c: New test. diff --git a/gcc/testsuite/g++.target/powerpc/undef-bool-3.C b/gcc/testsuite/g++.target/powerpc/undef-bool-3.C index 27f3da58217..b4e18bda2cb 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. */ -- 2.30.2