]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/expr.c
Tidy gas/expr.c static state
authorAlan Modra <amodra@gmail.com>
Sat, 14 Jan 2023 11:43:54 +0000 (22:13 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Jan 2023 12:55:32 +0000 (23:25 +1030)
commit6eb099ae9324f1210d98a406dee07f22ab26a4eb
tree3c8202ab6286e37eab4820af9500ec0c80339c92
parent6e4b74e9a962dd730e84ca54e6d5654b03e69b09
Tidy gas/expr.c static state

* expr.c (seen, nr_seen): Make file scope.
(expr_begin): Clear seen, nr_seen, and expr_symbol_lines.
(expr_end): New function.
* expr.h (expr_end): Declare.
* output-file.c (output_file_close): Call expr_end.
* config/tc-hppa.c (expr_end): Rename to expr_parse_end.
* config/tc-mips.c: Likewise.
* config/tc-riscv.c: Likewise.
* config/tc-sparc.c: Likewise.
gas/config/tc-hppa.c
gas/config/tc-mips.c
gas/config/tc-riscv.c
gas/config/tc-sparc.c
gas/expr.c
gas/expr.h
gas/output-file.c