From: Tobias Burnus Date: Thu, 21 Oct 2021 07:28:57 +0000 (+0200) Subject: testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=830f04d4dd680bcd3631dbb8bc6450b8b590a35b;p=thirdparty%2Fgcc.git testsuite/libgomp.oacc-fortran/: Add -Wopenacc-parallelism 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. --- diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 16f48c100924..f93ed33b93ca 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,9 @@ +2021-10-21 Tobias Burnus + + * 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 * config/gcn/bar.h (gomp_barrier_init): Limit thread count to the diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 index 1c8ccd9f61f2..40cfde34aae1 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90 @@ -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: diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 index 9381b00343de..c64d4bbe2112 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-allocatable-3.f90 @@ -1,6 +1,7 @@ ! Test declare create with allocatable arrays. ! { dg-do run } +! { dg-additional-options "-Wopenacc-parallelism" } module vars implicit none