Landing: 3f8c74831128

Project / Subsystem

gcc / openmp

Date

2026-04-29

Author

Julian Brown

Commit

3f8c7483112807f8f2c48852f9cbad9a4d5b1da4

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
openmp
patch_id
commit_hash
3f8c7483112807f8f2c48852f9cbad9a4d5b1da4
source_type
github
headline
OpenMP: Enable declare mapper on target data directives
tldr
Extends support for OpenMP declare mapper to target enter/exit/data directives, aligning with OpenMP 5.2.
author
Julian Brown
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • openmp
  • parallel programming
  • offloading
discussion_id_link
bugzilla_pr
date
2026-04-29T00:00:00.000Z

This patch expands the use of ‘declare mapper’ mappers to ‘omp target data’, ‘omp target enter data’, and ‘omp target exit data’ directives in OpenMP. It supports explicit mappings for these directives and adjusts ‘map kind decay’ to align with OpenMP 5.2 semantics, which is important for ‘exit data’ operations. The changes apply to both C and C++.