]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add -Wopenacc-parallelism to tests only in OG11
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 30 Apr 2021 17:18:13 +0000 (10:18 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Mon, 10 May 2021 17:19:56 +0000 (10:19 -0700)
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.

gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/goacc/note-parallelism-1-kernels-straight-line.c
gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c
gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90

index 58cf2f225c6dc73bdcc3f4e4480a6b7460ed3a10..9a3e21a579bdedabb9e08aad76a56ca251d9d542 100644 (file)
@@ -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
index f1bc0c88caeae6a7729813472b890985b2f7df0a..829811e1ec7f3c4162c06c826e34fdea3eb0c0bd 100644 (file)
@@ -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".  */
index d30321710ddc1e66db269d5d0197c0edd69dc73a..18a2b03b79b45a92d56eeb3013a6c1554b5e555a 100644 (file)
@@ -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
index 6ad3803969618f8a9ce3529411f8fb0dd19e582c..1e0b1d64578c937212579987a9ca749017075c03 100644 (file)
@@ -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