This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PR testsuite/25891 part 2: check_effective_target_fopenmp & C++


PR 25891 notes that the g++ gomp tests are run unconditionally,
even on targets that do not support gomp.  This patch applies the
gcc.dg/gomp/gomp.exp skip mechanism to g++.dg/gomp/gomp.exp too.

Tested on mips64-linux-gnu and i686-pc-linux-gnu, where the tests still
ran correctly.  Also tested on mipsisa64-elf, where the tests are now
skipped.  Applied as obvious.

Richard


gcc/testsuite
	PR testsuite/25891
	* g++.dg/gomp/gomp.exp: Skip if ![check_effective_target_fopenmp].

Index: gcc/testsuite/g++.dg/gomp/gomp.exp
===================================================================
--- gcc/testsuite/g++.dg/gomp/gomp.exp	(revision 113871)
+++ gcc/testsuite/g++.dg/gomp/gomp.exp	(working copy)
@@ -1,6 +1,10 @@
 # Load support procs.
 load_lib g++-dg.exp
 
+if ![check_effective_target_fopenmp] {
+  return
+}
+
 # Initialize `dg'.
 dg-init
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]