]> 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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 12 May 2023 18:13:48 +0000 (19:13 +0100)
The following testcases expect the -Wopenacc-parallelism warning output
but did fail as not compiled with that warning; solution: add it.

libgomp/ChangeLog:

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

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

index 16f48c1009241ca37b5f77ba8b8d7ac04098db14..f93ed33b93cae2e44cf7fff959b721656d85178c 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2021-08-03  Andrew Stubbs  <ams@codesourcery.com>
 
        * config/gcn/bar.h (gomp_barrier_init): Limit thread count to the
index 1c8ccd9f61f25f874d3f846d564731b992859601..40cfde34aae11cc22ac73baee4bdabb346e49782 100644 (file)
@@ -1,6 +1,7 @@
 ! Test OpenACC 'declare create' with allocatable arrays.
 
 ! { dg-do run }
+! { dg-additional-options "-Wopenacc-parallelism" }
 
 !TODO-OpenACC-declare-allocate
 ! Not currently implementing correct '-DACC_MEM_SHARED=0' behavior:
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