public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] Add -Wopenacc-parallelism to tests only in OG11
@ 2021-05-13 16:21 Kwok Yeung
0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2021-05-13 16:21 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f290996b035c5739dde57e5e4a7f39b3c739b5c0
commit f290996b035c5739dde57e5e4a7f39b3c739b5c0
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date: Fri Apr 30 10:18:13 2021 -0700
Add -Wopenacc-parallelism to tests only in OG11
2021-04-30 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/testsuite/
* c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c: Add
-Wopenacc-parallelism option.
* c-c++-common/goacc/orphan-reductions-2.c: Likewise.
* gfortran.dg/goacc/orphan-reductions-2.f90: Likewise.
Diff:
---
gcc/testsuite/ChangeLog.omp | 7 +++++++
.../c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c | 1 +
gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c | 2 ++
gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90 | 2 ++
4 files changed, 12 insertions(+)
diff --git a/gcc/testsuite/ChangeLog.omp b/gcc/testsuite/ChangeLog.omp
index 58cf2f225c6..9a3e21a579b 100644
--- a/gcc/testsuite/ChangeLog.omp
+++ b/gcc/testsuite/ChangeLog.omp
@@ -1,3 +1,10 @@
+2021-04-30 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c: Add
+ -Wopenacc-parallelism option.
+ * c-c++-common/goacc/orphan-reductions-2.c: Likewise.
+ * gfortran.dg/goacc/orphan-reductions-2.f90: Likewise.
+
2021-04-30 Kwok Cheung Yeung <kcy@codesourcery.com>
Backport from mainline
diff --git a/gcc/testsuite/c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c b/gcc/testsuite/c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c
index f1bc0c88cae..829811e1ec7 100644
--- a/gcc/testsuite/c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c
+++ b/gcc/testsuite/c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c
@@ -2,6 +2,7 @@
construct containing straight-line code. */
/* { dg-additional-options "-fopt-info-note-optimized-omp" } */
+/* { dg-additional-options "-Wopenacc-parallelism" } */
//TODO update accordingly
/* See also "../../gfortran.dg/goacc/note-parallelism.f90". */
diff --git a/gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c b/gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c
index d30321710dd..18a2b03b79b 100644
--- a/gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c
+++ b/gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c
@@ -1,6 +1,8 @@
/* Verify that the error message for gang reduction on orphaned OpenACC loops
is not reported for non-orphaned loops. */
+/* { dg-additional-options "-Wopenacc-parallelism" } */
+
#include <assert.h>
int
diff --git a/gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90 b/gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90
index 6ad38039696..1e0b1d64578 100644
--- a/gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90
+++ b/gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90
@@ -1,6 +1,8 @@
! Verify that the error message for gang reductions on orphaned OpenACC loops
! is not reported for non-orphaned loops.
+! { dg-additional-options "-Wopenacc-parallelism" }
+
subroutine kernels
implicit none
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-13 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:21 [gcc/devel/omp/gcc-11] Add -Wopenacc-parallelism to tests only in OG11 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).