[committed] cobol: Unbreak bootstrap
Checks
Commit Message
On Tue, Aug 04, 2026 at 09:25:40AM +0200, Andreas Schwab wrote:
> ../../gcc/cobol/parse.y: In function 'int yyparse()':
> ../../gcc/cobol/parse.y:2188:43: error: unquoted option name '-dialect' in format [-Werror=format-diag]
> 2188 | error_msg(@2, "ASSIGN OTHER requires -dialect ibm");
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> make[3]: *** [Makefile:1219: cobol/parse.o] Error 1
Fixed thusly, bootstrapped/regtested on x86_64-linux, committed to trunk as
obvious.
2026-08-04 Jakub Jelinek <jakub@redhat.com>
* parse.y (selected_name): Use %<-dialect ibm%> instead of just
-dialect ibm.
Jakub
@@ -2185,7 +2185,7 @@ selected_name: external NAME {
| external OTHER
{
if( !dialect_ibm() ) {
- error_msg(@2, "ASSIGN OTHER requires -dialect ibm");
+ error_msg(@2, "ASSIGN OTHER requires %<-dialect ibm%>");
YYERROR;
}