From bf3925d6af6939862e064a0017879d3ddbec79c7 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 24 May 2023 03:07:49 -0300 Subject: [PATCH] [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. --- gcc/testsuite/g++.dg/pr80481.C | 2 ++ 1 file changed, 2 insertions(+) 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" } -- 2.39.2