[PATCH, testsuite] Fix powerpc-specific portions of PR85326

Bill Schmidt wschmidt@linux.ibm.com
Sun Apr 15 21:53:00 GMT 2018


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;
-}
-



More information about the Gcc-patches mailing list