Landing: 033e0079a4c4
Project / Subsystem
gcc / cobol
Date
2026-06-05
Author
Robert Dubner
Commit
033e0079a4c498c287d610546cf85e83be003e71
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 033e0079a4c498c287d610546cf85e83be003e71
- source_type
- github
- headline
- COBOL now consistently displays COMP-1/-2 variables with IBM dialect.
- tldr
- GCC's COBOL compiler now correctly displays `COMP-1` and `COMP-2` variables when using the IBM dialect, fixing an output formatting mismatch.
- author
- Robert Dubner
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • bugfix
- • ibm-dialect
- • data-formatting
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-05T00:00:00.000Z
This commit ensures that GCC’s COBOL frontend properly formats and displays COMP-1 and COMP-2 variables when the -dialect ibm option is active. This addresses a previously reported bug where the output for these data types did not align with IBM COBOL’s expected formatting. The fix involves an update to the format_for_display_internal function in libgcobol, crucial for maintaining compatibility and correct behavior for COBOL programs targeting the IBM environment.