Further test case adjustment re "Fortran: Fix assumed-size to assumed-rank passing"
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 28 Sep 2021 06:05:28 +0000 (08:05 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 28 Sep 2021 12:18:21 +0000 (14:18 +0200)
commita43ae03a053faad871e6f48099d21e64b8e316cf
tree47bd7ae9ab3b019313694c6d6cfeccb79a14460d
parentdbed1c8693c6b5cb02c903cea91db574200bd513
Further test case adjustment re "Fortran: Fix assumed-size to assumed-rank passing"

Fix-up for recent commit 00f6de9c69119594f7dad3bd525937c94c8200d0
"Fortran: Fix assumed-size to assumed-rank passing [PR94070]",
and commit da1f6391b7c255e4e2eea983832120eff4f7d3df
"libgomp.oacc-fortran/privatized-ref-2.f90: Fix dg-note".

Due to use of '#if !ACC_MEM_SHARED' conditionals in
'libgomp.oacc-fortran/if-1.f90', 'target { !  openacc_host_selected }'
needs some special care (ignoring the pre-existing mismatch of
'ACC_MEM_SHARED' vs. 'openacc_host_selected').

As seen with GCN offloading, we need to revert to another bit of the
original code in 'libgomp.oacc-fortran/privatized-ref-2.f90'.

libgomp/
* testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
* testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
libgomp/testsuite/libgomp.oacc-fortran/if-1.f90
libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90