]> git.ipfire.org Git - thirdparty/gcc.git/commit
[OpenACC 'exit data'] Evaluate 'copyfrom' individually for 'GOMP_MAP_STRUCT' entries
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 4 Jun 2020 14:13:35 +0000 (16:13 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 4 Jun 2020 17:29:27 +0000 (19:29 +0200)
commit2c838a3e4ea06c69c856d074ae5b0400e08ae3c2
tree36185d623c6b89469d77b9304cb8e536edda2c04
parenta02f1adbfe619ab19cf142438e0a02950d3594da
[OpenACC 'exit data'] Evaluate 'copyfrom' individually for 'GOMP_MAP_STRUCT' entries

Currently, we don't at all evaluate 'copyfrom' 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 'copyfrom' individually for each entry.
* testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/struct-1.c