libgomp.fortran/defaultmap-8.f90: Fix non-shared memory handling

Tobias Burnus
Mon Jun 28 17:13:18 GMT 2021

The following runs into the problem that the pointer
is privatized but not the pointer target (in the C
sense, i.e. it affects both allocatables and pointers
in Fortran). Thus, when running it with non-shared
memory offloading, the pointer shows to an invalid

I think the fix is obvious (albeit unfortunate).

(Tested on x86-64 with -foffload=nvptx-none and


Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default-test.diff
Type: text/x-patch
Size: 2811 bytes
Desc: not available
URL: <>

More information about the Gcc-patches mailing list