WEDNESDAY, JULY 22, 2026
cobol
Cobol: Enable suppression of unimplemented exception conditions.
Cobol compiler now allows suppressing warnings for unimplemented exception conditions.
The GCC Cobol compiler now supports suppressing warnings for unimplemented exception conditions. It achieves this by adding both Wx and Wno-x forms to the specs string for each warning, allowing explicit control over warning severity regardless of dialect defaults.
In Details
The cobol front-end now ensures that all warnings have corresponding Wno- options by defining both forms in lang-specs.h. This provides users with fine-grained control over warning suppression, overriding dialect-specific defaults, and is a prerequisite for handling unimplemented exception conditions more gracefully.
For Context
- specs string
- A configuration string used by GCC to specify compiler driver options, including how to handle warnings and which tools to invoke.
- dialect
- A specific variant or set of features within a programming language. For COBOL, dialects might correspond to different standards or vendor extensions.
- exception conditions
- Events or states that disrupt the normal flow of program execution, which may be signaled and handled. In COBOL, these relate to error reporting and recovery.