Hello, This prevents failures of a test using -fopenmp on targets not advertising support for that feature (VxWorks in my case).
I have also verified that the test still runs and passes on a native x86_64-linux configuration. Ok to commit ? Thanks in advance! With Kind Regards, Olivier 2020-11-02 Olivier Hainque <hain...@adacore.com> testsuite/ * g++.dg/pr80481.C: Add dg-require-effective-target fopenmp.
diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C index 78c463b8e3b5..33f75b27653f 100644 --- a/gcc/testsuite/g++.dg/pr80481.C +++ b/gcc/testsuite/g++.dg/pr80481.C @@ -1,4 +1,5 @@ // { dg-do compile { target { i?86-*-* x86_64-*-* } && { ! *-*-solaris* } } } +// { dg-require-effective-target fopenmp } // { 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.17.1