aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2023-05-24 03:07:49 -0300
committerAlexandre Oliva <oliva@gnu.org>2023-05-24 23:41:00 -0300
commitbf3925d6af6939862e064a0017879d3ddbec79c7 (patch)
treebc15f5f63557011e6b119df90b874f5810f8011c
parent1f6a9e42e9b5f992b0dbcbf3249bc6e09e6d0b3e (diff)
downloadgcc-bf3925d6af6939862e064a0017879d3ddbec79c7.zip
gcc-bf3925d6af6939862e064a0017879d3ddbec79c7.tar.gz
gcc-bf3925d6af6939862e064a0017879d3ddbec79c7.tar.bz2
[testsuite] require pthread for openmp
Fix test that uses -fopenmp without declaring requirement for pthread support. for gcc/testsuite/ChangeLog * g++.dg/pr80481.C: Add explicit pthread requirement.
-rw-r--r--gcc/testsuite/g++.dg/pr80481.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C
index 78c463b..3a88699 100644
--- a/gcc/testsuite/g++.dg/pr80481.C
+++ b/gcc/testsuite/g++.dg/pr80481.C
@@ -1,4 +1,6 @@
// { dg-do compile { target { i?86-*-* x86_64-*-* } && { ! *-*-solaris* } } }
+// -fopenmp implies -pthread
+// { dg-require-effective-target pthread }
// { dg-options "-Ofast -funroll-loops -fopenmp -march=knl" }
// Disabling epilogues until we find a better way to deal with scans.
// { dg-additional-options "--param vect-epilogues-nomask=0" }