Landing: b2647ee4e0c3

Project / Subsystem

gcc / cobol

Date

2026-09-17

Author

Xavier Del Campo Romero

Commit

b2647ee4e0c3a4a55feb27d0d1e40fd2bba8a983

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
b2647ee4e0c3a4a55feb27d0d1e40fd2bba8a983
source_type
github
headline
Cobol: Improve diagnostics for directory-based copybooks
tldr
Cobol compiler now reports if a copybook is a directory, preventing confusing mmap errors.
author
Xavier Del Campo Romero
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • diagnostics
  • • error handling
discussion_id_link
—
bugzilla_pr
—
date
2026-09-17T00:00:00.000Z

The cobol compiler now explicitly checks if a requested copybook is a directory using fstat(2) before attempting to mmap(2) it. This change prevents confusing ‘No such device’ errors and provides a clear diagnostic message indicating that the specified path is a directory, improving usability.