[committed] cobol: Unbreak bootstrap

Message ID anJAQ-W48dpfpjj0@tucnak
State New
Headers
Series [committed] cobol: Unbreak bootstrap |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap success Build passed
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Jakub Jelinek Aug. 4, 2026, 7:40 p.m. UTC
  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
  

Patch

--- 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;
                   }