public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism
@ 2022-06-29 14:41 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2022-06-29 14:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3f4978ee8dcf8dfcbf77981052323e004a66e64c

commit 3f4978ee8dcf8dfcbf77981052323e004a66e64c
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Thu Oct 21 09:28:57 2021 +0200

    testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism
    
    The following testcases expect the -Wopenacc-parallelism warning output
    but did fail as not compiled with that warning; solution: add it.
    
    libgomp/ChangeLog:
    
            * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: Compile
            with -Wopenacc-parallelism.
            * testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90: Likewise.

Diff:
---
 libgomp/ChangeLog.omp                                            | 6 ++++++
 libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 | 1 +
 libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 | 1 +
 3 files changed, 8 insertions(+)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 5a8a4687ade..20e94c67535 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,9 @@
+2021-10-21  Tobias Burnus  <tobias@codesourcery.com>
+
+	* testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: Compile
+	with -Wopenacc-parallelism.
+	* testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90: Likewise.
+
 2021-08-03  Andrew Stubbs  <ams@codesourcery.com>
 
 	* config/gcn/bar.h (gomp_barrier_init): Limit thread count to the
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90
index ec7f7c18ff3..c231b9aa574 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90
@@ -1,6 +1,7 @@
 ! Test declare create with allocatable arrays.
 
 ! { dg-do run }
+! { dg-additional-options "-Wopenacc-parallelism" }
 
 module vars
   implicit none
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90
index 9381b00343d..c64d4bbe211 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90
@@ -1,6 +1,7 @@
 ! Test declare create with allocatable arrays.
 
 ! { dg-do run }
+! { dg-additional-options "-Wopenacc-parallelism" }
 
 module vars
   implicit none


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

only message in thread, other threads:[~2022-06-29 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 14:41 [gcc/devel/omp/gcc-12] testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism Kwok Yeung

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).