From: Kwok Cheung Yeung Date: Fri, 30 Apr 2021 17:18:13 +0000 (-0700) Subject: Add -Wopenacc-parallelism to tests only in OG11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f290996b035c5739dde57e5e4a7f39b3c739b5c0;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/ChangeLog.omp b/gcc/testsuite/ChangeLog.omp index 58cf2f225c6d..9a3e21a579bd 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 f1bc0c88caea..829811e1ec7f 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 d30321710ddc..18a2b03b79b4 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 6ad380396961..1e0b1d64578c 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