[PR92843] [OpenACC] Fix dynamic reference counting for structured 'REFCOUNT_INFINITY'
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 11 Dec 2019 16:49:27 +0000 (17:49 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 11 Dec 2019 16:49:27 +0000 (17:49 +0100)
commitd6e8c01cff1bee743a9d00e9a43303ec29fde233
treea256dc21f4379bbf80ccbefa183250b98d71d98a
parent57963e3934de387ade6b314a5d72330c28f30806
[PR92843] [OpenACC] Fix dynamic reference counting for structured 'REFCOUNT_INFINITY'

libgomp/
PR libgomp/92843
* oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
reference counting for structured 'REFCOUNT_INFINITY'.  Add some
assertions.
(goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
* testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
* testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
* testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.

From-SVN: r279234
libgomp/ChangeLog
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/clauses-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-82.c
libgomp/testsuite/libgomp.oacc-c-c++-common/nested-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr92843-1.c [new file with mode: 0644]