Landing: 0c0a5d99500a
Project / Subsystem
gcc / cobol
Date
2026-08-10
Author
Robert Dubner
Commit
0c0a5d99500afd023c3dd0cd1909889cae954f6f
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 0c0a5d99500afd023c3dd0cd1909889cae954f6f
- source_type
- github
- headline
- cobol: Repair COBOL EXTERNAL data definition.
- tldr
- Fixes COBOL EXTERNAL data definitions by aligning them with Fortran COMMON, resolving linking issues with C modules.
- author
- Robert Dubner
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • interoperability
- • linker
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-10T00:00:00.000Z
This commit corrects how COBOL’s EXTERNAL data definitions are handled, bringing them in line with Fortran’s COMMON data behavior. Previously, these were mistakenly treated as C global variables, causing linking problems. The fix now uses DECL_WEAK references for metadata and DECL_COMMON for data areas, enabling correct interoperability with C modules and proper runtime behavior for EXTERNAL data.