Landing: 98158a3a993d
Project / Subsystem
gcc / gcc
Date
2026-05-15
Author
Paul-Antoine Arras
Commit
98158a3a993d9fbeb6f3a0f12d00ab8087b19794
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 98158a3a993d9fbeb6f3a0f12d00ab8087b19794
- source_type
- github
- headline
- OpenMP 5.0: Enables multiple map clauses for the same variable.
- tldr
- GCC now supports OpenMP 5.0's allowance of multiple map clauses on the same variable, requiring deduplication to avoid cycles during gimplification.
- author
- Paul-Antoine Arras
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • OpenMP
- • parallel programming
- • Fortran
- • C
- • C++
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-15T00:00:00.000Z
This commit enables support for OpenMP 5.0’s relaxation of the restriction against multiple map clauses referencing the same variable within a single OpenMP construct. To ensure correct code generation, the compiler now deduplicates or merges these map clauses before the topological sort in gimplify.cc, preventing potential cycles. This deduplication occurs both in the front-ends and during gimplification due to early clause expansion. The Fortran front-end sees adjustments to enum gfc_omp_map_op.