https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92843
--- Comment #11 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Author: tschwinge Date: Wed Dec 11 16:49:27 2019 New Revision: 279234 URL: https://gcc.gnu.org/viewcvs?rev=279234&root=gcc&view=rev Log: [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. Added: trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/pr92843-1.c Modified: trunk/libgomp/ChangeLog trunk/libgomp/oacc-mem.c trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/clauses-1.c trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-82.c trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/nested-1.c