[committed] cobol: Unbreak bootstrap
Jakub Jelinek <[email protected]> Tue, 4 Aug 2026 21:40:51 +0200
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <anJAQ-W48dpfpjj0@tucnak> |
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 <[email protected]> * parse.y (selected_name): Use %<-dialect ibm%> instead of just -dialect ibm. --- gcc/cobol/parse.y.jj 2026-08-04 16:58:12.956130487 +0200 +++ gcc/cobol/parse.y 2026-08-04 17:56:08.588323494 +0200 @@ -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; } Jakub