Modernise yyerror
authorAlan Modra <amodra@gmail.com>
Sat, 6 Nov 2021 10:18:14 +0000 (20:48 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 6 Nov 2021 10:45:49 +0000 (21:15 +1030)
commit314ec7aeeb1b2e68f0d8fb9990f2335f475a6e33
tree55e741cd404603b278fabe83cf3cb9f04eb4feb4
parente8f81980cee2d21605e60414a025f8b795147d9f
Modernise yyerror

Newer versions of bison emit a prototype for yyerror
void yyerror (const char *);
This clashes with some of our old code that declares yyerror to return
an int.  Fix that in most cases by modernizing yyerror.  bfin-parse.y
uses the return value all over the place, so for there disable
generation of the prototype as specified by posix.

binutils/
* arparse.y (yyerror): Return void.
* dlltool.c (yyerror): Likewise.
* dlltool.h (yyerror): Likewise.
* sysinfo.y (yyerror): Likewise.
* windmc.h (yyerror): Likewise.
* mclex.c (mc_error): Extract from ..
(yyerror): ..here, both now returning void.
gas/
* config/bfin-parse.y (yyerror): Define.
(yyerror): Make static.
* itbl-parse.y (yyerror): Return void.
ld/
* deffilep.y (def_error): Return void.
binutils/arparse.y
binutils/dlltool.c
binutils/dlltool.h
binutils/mclex.c
binutils/sysinfo.y
binutils/windmc.h
gas/config/bfin-parse.y
gas/itbl-parse.y
ld/deffilep.y