[OpenACC 'exit data'] Strip 'GOMP_MAP_STRUCT' mappings
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 20 May 2020 08:56:55 +0000 (10:56 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 5 Jun 2020 16:04:13 +0000 (18:04 +0200)
commit1afc4672561a41dfbf4e3f2c1f35f7a5b7a20339
tree18196bbe57bf3736f043a52b2204734bafbde9fb
parent1809628fcff6f512206efd0ae03a3faccc4096f2
[OpenACC 'exit data'] Strip 'GOMP_MAP_STRUCT' mappings

These are not itself necessary for OpenACC 'exit data' directives, and are
skipped over (now) in libgomp.  We might as well not emit them to start with,
in line with the equivalent OpenMP directive.  We keep the no-op handling in
libgomp for the reason of backward compatibility.

gcc/
* gimplify.c (gimplify_adjust_omp_clauses): Remove
'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
gcc/testsuite/
* c-c++-common/goacc/struct-enter-exit-data-1.c: New file.
libgomp/
* oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
special handling.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
gcc/gimplify.c
gcc/testsuite/c-c++-common/goacc/struct-enter-exit-data-1.c [new file with mode: 0644]
libgomp/oacc-mem.c