cobol: Unbreak bootstrap
Fixes a Cobol bootstrap failure caused by an unquoted dialect option in a format string.
This commit resolves a bootstrap failure in the Cobol frontend that occurred due to the use of -Werror=format-diag. The error stemmed from an unquoted ‘-dialect ibm’ option within a format string in parse.y. The fix replaces the unquoted option with a properly quoted %<-dialect ibm%>, ensuring that the format string is parsed correctly and allowing the Cobol frontend to build successfully.
In Details
During Cobol frontend bootstrapping, -Werror=format-diag is enabled. A recent change in parse.y introduced an unquoted -dialect ibm option within a format string literal. This causes format-diag to flag it as an error, breaking the bootstrap. The fix involves quoting the dialect option as %<-dialect ibm%>, which is the correct way to specify it within GCC's diagnostic formatting macros, resolving the build issue.
- bootstrap
- The process of building a compiler using an earlier version of itself. This is a common method for building complex software like compilers to ensure self-hosting capabilities.
- Cobol frontend
- The part of the GCC compiler responsible for parsing and processing Cobol source code.
- format string
- A string that contains plain text and special placeholders (format specifiers) that are replaced by the values of variables when the string is processed or displayed.
- -Werror=format-diag
- A GCC warning option that treats format string diagnostic errors as fatal errors, causing compilation to stop.