[OpenACC] Elaborate/simplify 'exit data' 'finalize' handling
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 18 Dec 2019 17:00:51 +0000 (18:00 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 18 Dec 2019 17:00:51 +0000 (18:00 +0100)
commit32128577aed11aa21f3227edc2276da677e97636
tree4167e621c9f26c18650ef4ede579205bde00e0cf
parentba40277f6ac96ceb982120ce95d2b64695a25dff
[OpenACC] Elaborate/simplify 'exit data' 'finalize' handling

No functional changes.

gcc/
* gimplify.c (gimplify_omp_target_update): Elaborate 'exit data'
'finalize' handling.
gcc/testsuite/
* c-c++-common/goacc/finalize-1.c: Extend.
* gfortran.dg/goacc/finalize-1.f: Likewise.
libgomp/
* oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
'finalize' handling.

From-SVN: r279531
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/finalize-1.c
gcc/testsuite/gfortran.dg/goacc/finalize-1.f
libgomp/ChangeLog
libgomp/oacc-mem.c