]> gcc.gnu.org Git - 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>
Thu, 23 Jul 2020 19:50:07 +0000 (12:50 -0700)
commit25bce75c77ec5617c78173d837d3b664c0f20968
tree1c4a8416c0477d3e89e6b8d0aee7ac277d025ee8
parentd4b3ea941b1a15cadb79e7ff8a36891131f8804b
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>
libgomp/target.c
libgomp/testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c [new file with mode: 0644]
This page took 0.057911 seconds and 5 git commands to generate.