Landing: 50cdeaeb5cf2
Project / Subsystem
gcc / cobol
Date
2026-09-02
Author
James K. Lowden
Commit
50cdeaeb5cf2acbc65ef3860186003a0137e8260
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 50cdeaeb5cf2acbc65ef3860186003a0137e8260
- source_type
- github
- headline
- Cobol lexer performance boosted and syntax extended.
- tldr
- Cobol compiler's lexer is significantly faster after optimization, and new syntax extensions for redefined tables and copybooks are supported.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • optimization
- • lexer
- • syntax
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-02T00:00:00.000Z
This commit makes substantial performance improvements to the COBOL compiler’s lexer by optimizing symbol table lookups, which previously consumed a large portion of the lexer’s time. It also introduces syntax extensions, including support for Wredefines-table diagnostics and more accurate reporting of Wcopybook-found diagnostics. Additionally, the lexer now supports more flexible PIC clauses and string concatenation.