Landing: 3b774d3f7981
Project / Subsystem
gcc / cobol
Date
2026-08-27
Author
James K. Lowden
Commit
3b774d3f7981182028bc991798e06eeedb7ba5fe
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 3b774d3f7981182028bc991798e06eeedb7ba5fe
- source_type
- github
- headline
- COBOL reserved words handling and screen syntax parsing improved.
- tldr
- GnuCOBOL reserved words are now correctly handled, and a new option allows parsing of GnuCOBOL screen syntax.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • parser
- • keywords
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-27T00:00:00.000Z
This commit enhances GCC’s COBOL support by refining the handling of reserved words and introducing new parsing capabilities. Reserved words that are not defined by the ISO standard are now renamed to prevent conflicts with user-defined names, ensuring that reserved words can be reliably identified by consulting the token list. Additionally, a new compiler option, -Wdisplay-screen, has been added to enable the parsing of GnuCOBOL’s screen syntax within DISPLAY statements. While this syntax is parsed, it does not affect the compiler’s output.