aboutsummaryrefslogtreecommitdiff
path: root/gas/output-file.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-05 13:00:41 +0930
committerAlan Modra <amodra@gmail.com>2022-07-09 21:22:28 +0930
commitb18220936c6a1c660a108b88165c1972944e51fc (patch)
tree2dc676c9bfb427badfb95a8ad949351df751dbd2 /gas/output-file.c
parent5a210b9fe8a5fe616320f5adf432516334c3702f (diff)
downloadgdb-b18220936c6a1c660a108b88165c1972944e51fc.zip
gdb-b18220936c6a1c660a108b88165c1972944e51fc.tar.gz
gdb-b18220936c6a1c660a108b88165c1972944e51fc.tar.bz2
gas: free sy_hash, macro_hash and po_hash
* macro.c (macro_end): New function. * macro.h (macro_end): Declare. * read.c (read_end, poend): New functions. * read.h (read_end): Declare. * symbols.c (symbol_end): New function. * symbols.h (symbol_end): Declare. * output-file.c (output_file_close): Call new *_end functions.
Diffstat (limited to 'gas/output-file.c')
-rw-r--r--gas/output-file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/output-file.c b/gas/output-file.c
index 584deb2..3c4074b 100644
--- a/gas/output-file.c
+++ b/gas/output-file.c
@@ -20,6 +20,8 @@
#include "as.h"
#include "subsegs.h"
+#include "sb.h"
+#include "macro.h"
#include "output-file.h"
#ifndef TARGET_MACH
@@ -103,6 +105,9 @@ output_file_close (void)
if (!keep_it && filename)
unlink_if_ordinary (filename);
+ macro_end ();
+ read_end ();
+ symbol_end ();
subsegs_end (obs);
if (!res)