Landing: 81d6e077884f
Project / Subsystem
gcc / cobol
Date
2026-09-30
Author
Xavier Del Campo Romero
Commit
81d6e077884f43398cb144bd231bc8c43ace9e17
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 81d6e077884f43398cb144bd231bc8c43ace9e17
- source_type
- github
- headline
- cobol: Isolate source format for included files
- tldr
- GCC COBOL now correctly isolates source format detection for included files, preventing conflicts with the main compilation unit.
- author
- Xavier Del Campo Romero
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • compiler
- • lexing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-30T00:00:00.000Z
GCC’s COBOL compiler now correctly handles source file formats when files are included via the -include option. Previously, the heuristic used to determine fixed or free format for an included file could incorrectly influence the format detection for the main source file. This commit assigns separate source format state stacks to included files and the main compilation unit, ensuring format consistency.