]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: no need to attach USM pointers
authorAndrew Stubbs <ams@codesourcery.com>
Mon, 20 Feb 2023 12:23:14 +0000 (12:23 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Thu, 23 Feb 2023 12:00:48 +0000 (12:00 +0000)
commit3ad47717bf7163ed1628c829e06166a74c1e9cd3
treee99713a4e5d2229f59d63f9c5b0039badc2e21dd
parent55a18d4744258e3909568e425f9f473c49f9d13f
libgomp: no need to attach USM pointers

Fix a bug in which Fortran pointers inside derived types caused a runtime
error when Unified Shared Memory was active.

libgomp/ChangeLog:

* target.c (gomp_attach_pointer): Check for USM.
* testsuite/libgomp.fortran/usm-3.f90: New test.
libgomp/ChangeLog.omp
libgomp/target.c
libgomp/testsuite/libgomp.fortran/usm-3.f90 [new file with mode: 0644]