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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Chung-Lin Tang <[email protected]>:

https://gcc.gnu.org/g:e39cea88b2ed5518ff622b6ffab414854b234a2d

commit r17-3987-ge39cea88b2ed5518ff622b6ffab414854b234a2d
Author: Chung-Lin Tang <[email protected]>
Date:   Tue Sep 8 10:09:23 2026 +0000

    OpenMP: Implement 'link' behavior for maps under 'requires self_maps'
[PR122205]

    This patch implements 'link' clause behavior for 'enter' maps, when
detected that
    'requires self_maps' or 'unified_shared_memory' is in effect.

    This is done during implicit declare-target discovery, across all global
variables,
    changing any "omp declare target" attributes into "omp declare target
link".

            PR middle-end/122205

    gcc/ChangeLog:

            * omp-offload.cc (omp_discover_implicit_declare_target): For
variables,
            under 'OMP_REQUIRES_SELF_MAPS |
OMP_REQUIRES_UNIFIED_SHARED_MEMORY',
            remove "omp declare target" attribute and add "omp declare target
link".

    libgomp/ChangeLog:

            * testsuite/libgomp.c/omp_target_is_present.c: Adjust tests for
self_maps.
            * testsuite/libgomp.c-c++-common/requires-8.c: New test.
            * testsuite/libgomp.fortran/requires-2.f90: New test.

Reply via email to