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

Tobias Burnus tobias@codesourcery.com
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
address.

I think the fix is obvious (albeit unfortunate).

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

Tobias

-----------------
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: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210628/df670674/attachment.bin>


More information about the Gcc-patches mailing list