]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] require pthread for openmp
authorAlexandre Oliva <oliva@adacore.com>
Wed, 24 May 2023 06:07:49 +0000 (03:07 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 25 May 2023 02:41:00 +0000 (23:41 -0300)
Fix test that uses -fopenmp without declaring requirement for pthread
support.

for  gcc/testsuite/ChangeLog

* g++.dg/pr80481.C: Add explicit pthread requirement.

gcc/testsuite/g++.dg/pr80481.C

index 78c463b8e3b58b00428d815ffd93c79eb096802c..3a8869914634f4d898577d882dd6531fc2103728 100644 (file)
@@ -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" }