]> git.ipfire.org Git - thirdparty/gcc.git/commit
openacc: Remove unnecessary detach finalization
authorJulian Brown <julian@codesourcery.com>
Thu, 2 Jul 2020 21:18:20 +0000 (14:18 -0700)
committerJulian Brown <julian@codesourcery.com>
Wed, 29 Jul 2020 10:48:49 +0000 (03:48 -0700)
commit2ced237ad122091d4c050f2234349cb90e127e54
tree15717a4df2693312c8e5eb85640e89e990e5eda1
parentf43a1b1d1718969423337190ddbbbc9037c67783
openacc: Remove unnecessary detach finalization

The call to gomp_detach_pointer in gomp_unmap_vars_internal does not
need to force finalization, and doing so may mask mismatched pointer
attachments/detachments. This patch removes the forcing.

2020-07-16  Julian Brown  <julian@codesourcery.com>
    Thomas Schwinge  <thomas@codesourcery.com>

libgomp/
* target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
finalization for detach operation.
* testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
New test.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
(cherry picked from commit 25bce75c77ec5617c78173d837d3b664c0f20968)
libgomp/target.c
libgomp/testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c [new file with mode: 0644]