Landing: 357207648f16
Project / Subsystem
gcc / fortran/openmp
Date
2026-05-02
Author
Tobias Burnus
Commit
357207648f16eeb6768e081d320bf131a33316fc
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran/openmp
- patch_id
- —
- commit_hash
- 357207648f16eeb6768e081d320bf131a33316fc
- source_type
- github
- headline
- Fortran/OpenMP: Simplify `gfc_free_omp_namelist` interface.
- tldr
- The `gfc_free_omp_namelist` function in the Fortran front end now uses an enum to specify what needs to be freed, simplifying its interface and improving code…
- author
- Tobias Burnus
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • openmp
- • refactoring
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-02T00:00:00.000Z
The gfc_free_omp_namelist function in the Fortran front end now accepts an enum gfc_omp_list_type to determine which components of a namelist need to be freed, instead of multiple boolean arguments. This change centralizes the logic for determining what to free within the function itself, simplifying its interface and making it easier to use correctly. The commit also improves code readability by replacing magic numbers with enum values in list traversals.