Landing: 3b67b356f650
Project / Subsystem
gcc / cobol
Date
2026-09-29
Author
James K. Lowden
Commit
3b67b356f650e817e69cdcd441f80cee697d8f7a
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 3b67b356f650e817e69cdcd441f80cee697d8f7a
- source_type
- github
- headline
- Add Werrno to warn about errno, and refine syslog priority.
- tldr
- New Werrno warning in GCC COBOL flags potential issues with C's errno, and syslog priorities are refined for error conditions.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • compiler
- • warning
- • runtime
- • logging
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-29T00:00:00.000Z
GCC’s COBOL compiler now supports the -Werror option, which warns if a COBOL program uses ‘error’ as a data-item name without properly referencing the C errno variable. Additionally, the severity of syslog messages for unhandled error conditions has been refined, using LOG_ERR for fatal errors and LOG_WARNING for non-fatal ones, while unimplemented or unrecognized errors still use LOG_INFO.