This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite] Fix powerpc-specific portions of PR85326
- From: Bill Schmidt <wschmidt at linux dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Segher Boessenkool <segher at kernel dot crashing dot org>, David Edelsohn <dje dot gcc at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>
- Date: Sun, 15 Apr 2018 16:53:27 -0500
- Subject: [PATCH, testsuite] Fix powerpc-specific portions of PR85326
Hi,
This test fixes the part of PR85326 that involves powerpc test cases.
It removes support for .C tests in gcc.target/powerpc and moves the
one .C test from that directory to g++.dg with target constraints.
Tested on powerpc64le-linux-gnu. Okay for trunk?
Thanks,
Bill
[gcc/testsuite]
2018-04-15 Bill Schmidt <wschmidt@linux.ibm.com>
PR testsuite/85326
* g++.dg/undef-bool-1.C: New file.
* gcc.target/powerpc/powerpc.exp: Remove .C support.
* gcc.target/powerpc/undef-bool-1.C: Remove file.
Index: gcc/testsuite/g++.dg/undef-bool-1.C
===================================================================
--- gcc/testsuite/g++.dg/undef-bool-1.C (nonexistent)
+++ gcc/testsuite/g++.dg/undef-bool-1.C (working copy)
@@ -0,0 +1,13 @@
+/* { dg-do compile { target { powerpc*-*-* } } } */
+/* { dg-options "-O2 -std=c++11 -DNO_WARN_X86_INTRINSICS" } */
+
+/* Test to ensure that "bool" gets undef'd in xmmintrin.h when
+ we require strict ANSI. */
+
+#include <xmmintrin.h>
+
+bool foo (int x)
+{
+ return x == 2;
+}
+
Index: gcc/testsuite/gcc.target/powerpc/powerpc.exp
===================================================================
--- gcc/testsuite/gcc.target/powerpc/powerpc.exp (revision 259389)
+++ gcc/testsuite/gcc.target/powerpc/powerpc.exp (working copy)
@@ -35,7 +35,7 @@ if ![info exists DEFAULT_CFLAGS] then {
dg-init
# Main loop.
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \
"" $DEFAULT_CFLAGS
set SAVRES_TEST_OPTS [list -Os -O2 {-Os -mno-multiple} {-O2 -mno-multiple}]
Index: gcc/testsuite/gcc.target/powerpc/undef-bool-1.C
===================================================================
--- gcc/testsuite/gcc.target/powerpc/undef-bool-1.C (revision 259389)
+++ gcc/testsuite/gcc.target/powerpc/undef-bool-1.C (nonexistent)
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -std=c++11 -DNO_WARN_X86_INTRINSICS" } */
-
-/* Test to ensure that "bool" gets undef'd in xmmintrin.h when
- we require strict ANSI. */
-
-#include <xmmintrin.h>
-
-bool foo (int x)
-{
- return x == 2;
-}
-