[OpenACC 'exit data'] Evaluate 'finalize' individually for 'GOMP_MAP_STRUCT' entries
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 4 Jun 2020 14:01:07 +0000 (16:01 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 4 Jun 2020 17:29:08 +0000 (19:29 +0200)
commita02f1adbfe619ab19cf142438e0a02950d3594da
tree32b6afd7de532f2defe76e9cd7f476750b8cbf85
parentdb7179ec74dda8c92db18399e5041a96ece8d56d
[OpenACC 'exit data'] Evaluate 'finalize' individually for 'GOMP_MAP_STRUCT' entries

Currently, we don't at all evaluate 'finalize' for 'GOMP_MAP_STRUCT' entries.
Fix this by copying/adapting the corresponding non-'GOMP_MAP_STRUCT' code.

libgomp/
* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
Evaluate 'finalize' individually for each entry.
* testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
* testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
file.
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/struct-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c [deleted file]