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/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f4978ee8dcf8dfcbf77981052323e004a66e64c;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 5a8a4687ade5..20e94c67535d 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 ec7f7c18ff32..c231b9aa574c 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 declare create with allocatable arrays. ! { dg-do run } +! { dg-additional-options "-Wopenacc-parallelism" } module vars implicit none 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