public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism
@ 2021-10-21 7:30 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2021-10-21 7:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6a3c27f9a72cb011c9b0072db69ebf847cb6eb01
commit 6a3c27f9a72cb011c9b0072db69ebf847cb6eb01
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.
* testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: Compile
with -Wopenacc-parallelism.
* testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90: Likewise.
* testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90: Likewise.
Diff:
---
libgomp/ChangeLog.omp | 7 +++++++
libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 | 1 +
libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 | 1 +
libgomp/testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90 | 2 +-
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index a37a94eec96..fe48c88e449 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,10 @@
+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.
+ * testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90: Likewise.
+
2021-10-20 Tobias Burnus <tobias@codesourcery.com>
Backported from master:
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
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90
index dafc70c743e..985db81d901 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90
@@ -1,7 +1,7 @@
! Test for "oacc gangprivate" attribute on gang-private variables
! { dg-do run }
-! { dg-additional-options "-fdump-tree-oaccdevlow-details" }
+! { dg-additional-options "-fdump-tree-oaccdevlow-details -Wopenacc-parallelism" }
! { dg-final { scan-tree-dump-times "Decl UID \[0-9\]+ has gang partitioning: integer\\(kind=4\\) w;" 1 "oaccdevlow" } } */
program main
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-21 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 7:30 [gcc/devel/omp/gcc-11] testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism Tobias Burnus
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).