Landing: e39cea88b2ed

Project / Subsystem

gcc / openmp

Date

2026-09-08

Author

Chung-Lin Tang

Commit

e39cea88b2ed5518ff622b6ffab414854b234a2d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
openmp
patch_id
—
commit_hash
e39cea88b2ed5518ff622b6ffab414854b234a2d
source_type
github
headline
OpenMP: Implement 'link' behavior for maps under 'requires self_maps'
tldr
OpenMP now correctly implements 'link' behavior for 'enter' maps when 'requires self_maps' or 'unified_shared_memory' is active.
author
Chung-Lin Tang
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • OpenMP
  • • offload
  • • parallelism
discussion_id_link
—
bugzilla_pr
—
date
2026-09-08T00:00:00.000Z

This change ensures that OpenMP’s ‘enter’ map clauses behave as ‘link’ when the requires self_maps or unified_shared_memory directives are in effect. During implicit declare-target discovery for global variables, existing omp declare target attributes are now transformed into omp declare target link. This aligns the behavior with the specified requirements for self-mapping and unified shared memory, improving the correctness of offload operations.