Landing: 4d2b3316eee2

Project / Subsystem

gcc / cobol

Date

2026-08-25

Author

James K. Lowden

Commit

4d2b3316eee20b969a3f6d06ab527f5885764539

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
4d2b3316eee20b969a3f6d06ab527f5885764539
source_type
github
headline
COBOL: Warn about unknown exception conditions, respecting pragmas.
tldr
GCC's COBOL compiler now warns about unrecognized exception conditions, respecting `Wno-unknown-ec` pragma.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • warning
discussion_id_link
—
bugzilla_pr
—
date
2026-08-25T00:00:00.000Z

GCC’s COBOL compiler now correctly handles unrecognized or unimplemented exception conditions (EC). It emits a warning when such an EC is encountered, and this warning can be suppressed by the Wno-unknown-ec pragma. This ensures that developers are alerted to potential issues with EC specifications while allowing them to silence the warnings if intended. The change involves modifications to diagnostic handling and error reporting functions.