]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Correct diagnostic strings for 32-bit builds.
authorJames K. Lowden <jklowden@cobolworx.com>
Fri, 20 Jun 2025 16:43:51 +0000 (12:43 -0400)
committerJames K. Lowden <jklowden@cobolworx.com>
Fri, 20 Jun 2025 21:52:40 +0000 (17:52 -0400)
commit007392c0f93cf46b9e87aebdd04e123e3381fc07
tree0eada0c171337d3c2ed864d6247e70c97083ba89
parentb03e0d69b37f6ea7aef220652635031a89f56a11
cobol: Correct diagnostic strings for 32-bit builds.

Avoid %z for printf-family.  Cast pid_t to long.  Avoid use of YYUNDEF
for old Bison versions.

PR cobol/120621

gcc/cobol/ChangeLog:

* genapi.cc (parser_compile_ecs): Cast argument to unsigned long.
(parser_compile_dcls): Same.
(parser_division): RAII.
(inspect_tally): Cast argument to unsigned long.
* lexio.cc (cdftext::lex_open): Cast pid_t to long.
* parse.y: hard-code values for old versions of Bison, and message format.
* scan_ante.h (wait_for_the_child): Cast pid_t to long.
gcc/cobol/genapi.cc
gcc/cobol/lexio.cc
gcc/cobol/parse.y
gcc/cobol/scan_ante.h