public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4954] Add effective target to OpenMP tests
@ 2023-10-26 16:59 Paul-Antoine Arras
  0 siblings, 0 replies; only message in thread
From: Paul-Antoine Arras @ 2023-10-26 16:59 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:abd78dc61076120649ccc1ca0b1d74d0b0a22f81

commit r14-4954-gabd78dc61076120649ccc1ca0b1d74d0b0a22f81
Author: Paul-Antoine Arras <pa@codesourcery.com>
Date:   Thu Oct 26 18:51:59 2023 +0200

    Add effective target to OpenMP tests
    
    This adds an effective target DejaGnu directive to prevent these testcases from
    failing on GCC configurations that do not support OpenMP.
    This fixes 8d2130a4e5c.
    
    gcc/testsuite/ChangeLog:
    
            * gfortran.dg/c_ptr_tests_20.f90: Add "fopenmp" effective target.
            * gfortran.dg/c_ptr_tests_21.f90: Add "fopenmp" effective target.

Diff:
---
 gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90 | 1 +
 gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90 b/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
index 7dd510400f32..131603d38197 100644
--- a/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
+++ b/gcc/testsuite/gfortran.dg/c_ptr_tests_20.f90
@@ -1,4 +1,5 @@
 ! { dg-do compile }
+! { dg-require-effective-target fopenmp }
 ! { dg-additional-options "-fopenmp" }
 !
 ! This failed to compile the declare variant directive due to the C_PTR 
diff --git a/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90 b/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90
index 05ccb771eee8..060d29d02759 100644
--- a/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90
+++ b/gcc/testsuite/gfortran.dg/c_ptr_tests_21.f90
@@ -1,4 +1,5 @@
 ! { dg-do compile }
+! { dg-require-effective-target fopenmp }
 ! { dg-additional-options "-fopenmp" }
 !
 ! Ensure that C_PTR and C_FUNPTR are reported as incompatible types in variant

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-26 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-26 16:59 [gcc r14-4954] Add effective target to OpenMP tests Paul-Antoine Arras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).