public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Kwok Yeung <kcy@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/omp/gcc-11] Add -Wopenacc-parallelism to tests only in OG11
Date: Thu, 13 May 2021 16:21:23 +0000 (GMT)	[thread overview]
Message-ID: <20210513162123.8AFEE3AA8033@sourceware.org> (raw)

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


                 reply	other threads:[~2021-05-13 16:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210513162123.8AFEE3AA8033@sourceware.org \
    --to=kcy@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).