Landing: 9e2e40f4ed8f

Project / Subsystem

gcc / openmp

Date

2026-07-16

Author

Tobias Burnus

Commit

9e2e40f4ed8f0797963a0166d2568d23c2d25024

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
openmp
patch_id
commit_hash
9e2e40f4ed8f0797963a0166d2568d23c2d25024
source_type
github
headline
OpenMP: Correct Fortran memspace use and multiple uses_allocators clauses
tldr
Fixes OpenMP's handling of Fortran `uses_allocators` memspace modifier and multiple clauses by improving data handling and alignment.
author
Tobias Burnus
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • openmp
  • fortran
  • allocators
  • memory management
discussion_id_link
bugzilla_pr
date
2026-07-16T00:00:00.000Z

This commit addresses two issues with OpenMP’s uses_allocators clause. First, it corrects how the memspace modifier is handled in Fortran, preventing it from being misinterpreted as an external variable and causing link-time errors. Second, it resolves an issue where multiple uses_allocator clauses were not properly supported, with later clauses overriding earlier ones. The fix involves adjusting data offsets in the runtime library to accommodate multiple clauses correctly. Additional test cases are included to cover these fixes.