[OpenACC] Repair/restore 'is_tgt_unmapped' checking
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 29 May 2020 13:22:42 +0000 (15:22 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 4 Jun 2020 16:56:37 +0000 (18:56 +0200)
commit06ec61726d192659cd446e59a91e78745037f0fd
treebde7c01eee6a9dc75814531320d8d6e3f9c452b6
parent2112d3242f413979931e371423dcead9d19440e7
[OpenACC] Repair/restore 'is_tgt_unmapped' checking

libgomp/
* oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
checking.
(acc_unmap_data, goacc_exit_data_internal): Restore
'is_tgt_unmapped' checking.
* testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
file.
* testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
* testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
* testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
* testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-fortran/deep-copy-6.f90
libgomp/testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90
libgomp/testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90
libgomp/testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90
libgomp/testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90
libgomp/testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90