From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1729) id 8AFEE3AA8033; Thu, 13 May 2021 16:21:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AFEE3AA8033 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kwok Yeung To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-11] Add -Wopenacc-parallelism to tests only in OG11 X-Act-Checkin: gcc X-Git-Author: Kwok Cheung Yeung X-Git-Refname: refs/heads/devel/omp/gcc-11 X-Git-Oldrev: 815065fedb74f3df65864942a9fcf38cddf9aba9 X-Git-Newrev: f290996b035c5739dde57e5e4a7f39b3c739b5c0 Message-Id: <20210513162123.8AFEE3AA8033@sourceware.org> Date: Thu, 13 May 2021 16:21:23 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2021 16:21:23 -0000 https://gcc.gnu.org/g:f290996b035c5739dde57e5e4a7f39b3c739b5c0 commit f290996b035c5739dde57e5e4a7f39b3c739b5c0 Author: Kwok Cheung Yeung Date: Fri Apr 30 10:18:13 2021 -0700 Add -Wopenacc-parallelism to tests only in OG11 2021-04-30 Kwok Cheung Yeung 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 + + * 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 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 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