From: Alexandre Oliva Date: Wed, 24 May 2023 06:07:49 +0000 (-0300) Subject: [testsuite] require pthread for openmp X-Git-Tag: basepoints/gcc-15~8954 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf3925d6af6939862e064a0017879d3ddbec79c7;p=thirdparty%2Fgcc.git [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. --- diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C index 78c463b8e3b5..3a8869914634 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" }