]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism
authorTobias Burnus <tobias@codesourcery.com>
Thu, 21 Oct 2021 07:28:57 +0000 (09:28 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 21 Oct 2021 07:28:57 +0000 (09:28 +0200)
The following testcases expect the -Wopenacc-parallelism warning output
but did fail as not compiled with that warning; solution: add it.

* testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: Compile
with -Wopenacc-parallelism.
* testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90: Likewise.
* testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90: Likewise.

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90
libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90
libgomp/testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90

index a37a94eec96bbd3a7fb6be5ee822d4284bdbbb80..fe48c88e449b93c9e3551c4b6458fddbd33c99a6 100644 (file)
@@ -1,3 +1,10 @@
+2021-10-21  Tobias Burnus  <tobias@codesourcery.com>
+
+       * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: Compile
+       with -Wopenacc-parallelism.
+       * testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90: Likewise.
+       * testsuite/libgomp.oacc-fortran/gangprivate-attrib-1.f90: Likewise.
+
 2021-10-20  Tobias Burnus  <tobias@codesourcery.com>
 
        Backported from master:
index ec7f7c18ff32e03a43fdbf8912b14043842852f0..c231b9aa574c9c898e1a5c228c4aa7bdf5223193 100644 (file)
@@ -1,6 +1,7 @@
 ! Test declare create with allocatable arrays.
 
 ! { dg-do run }
+! { dg-additional-options "-Wopenacc-parallelism" }
 
 module vars
   implicit none
index 9381b00343de36da42b5f0c4d05c12f4bf6ddf0b..c64d4bbe2112fe708385c6779ad0f74100b554d0 100644 (file)
@@ -1,6 +1,7 @@
 ! Test declare create with allocatable arrays.
 
 ! { dg-do run }
+! { dg-additional-options "-Wopenacc-parallelism" }
 
 module vars
   implicit none
index dafc70c743e5d71e11ab4ea15aebc1254f99630f..985db81d90141cb7facd49fc1136dd84cef2b108 100644 (file)
@@ -1,7 +1,7 @@
 ! Test for "oacc gangprivate" attribute on gang-private variables
 
 ! { dg-do run }
-! { dg-additional-options "-fdump-tree-oaccdevlow-details" }
+! { dg-additional-options "-fdump-tree-oaccdevlow-details -Wopenacc-parallelism" }
 ! { dg-final { scan-tree-dump-times "Decl UID \[0-9\]+ has gang partitioning:  integer\\(kind=4\\) w;" 1 "oaccdevlow" } } */
 
 program main