https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120194

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Hmm, actually, it looks as if I have already implemented (B.2) in GCC 15+ in
libgomp/target.c's gomp_load_image_to_device:

      if (is_link_var
          && (omp_requires_mask
              & (GOMP_REQUIRES_UNIFIED_SHARED_MEMORY |
GOMP_REQUIRES_SELF_MAPS)))
        gomp_copy_host2dev (devicep, NULL, (void *) target_var->start,
                            &k->host_start, sizeof (void *), false, NULL);

while my (b.2) diff change (comment 1) actually misses an 'omp' between
'#pragma' and 'target' ...

In any case, at least for self_maps, the automatic 'enter'->'link' change still
needs to be implemented.

Reply via email to