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

Richard Sandiford richard@codesourcery.com
Sat May 20 17:49:00 GMT 2006


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
 



More information about the Gcc-patches mailing list