This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PR testsuite/25891 part 2: check_effective_target_fopenmp & C++
- From: Richard Sandiford <richard at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 20 May 2006 15:18:27 +0100
- Subject: 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