gas: output_file_close
authorAlan Modra <amodra@gmail.com>
Thu, 7 Jul 2022 10:26:10 +0000 (19:56 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Jul 2022 11:50:31 +0000 (21:20 +0930)
commit07e64e0b7c6cd4a73220eb57588d0db6b2a192e3
treeb21fcb73f362e326904533bdbfa648bb9dce50b3
parentc30081c1f955a9fea2da8988bab96191e3d2171e
gas: output_file_close

This is mostly a tidy with the aim of being able to free
out_file_name, but it does fix a possible attempt to unlink the output
file twice (not that that matters).

* as.h (keep_it): New global.
* as.c (keep_it): Delete.
(close_output_file): Delete, merged into..
* output-file.c (output_file_close): ..here.  Delete parameter.
* output-file.h (output_file_close): Update prototype.
gas/as.c
gas/as.h
gas/output-file.c
gas/output-file.h