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.
This commit is contained in:
Alan Modra
2023-01-14 22:13:54 +10:30
parent 6e4b74e9a9
commit 6eb099ae93
7 changed files with 123 additions and 107 deletions

View File

@@ -111,6 +111,7 @@ output_file_close (void)
md_end ();
#endif
macro_end ();
expr_end ();
read_end ();
symbol_end ();
subsegs_end (obs);