aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.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/macro.c
parent5a210b9fe8a5fe616320f5adf432516334c3702f (diff)
downloadfsf-binutils-gdb-b18220936c6a1c660a108b88165c1972944e51fc.zip
fsf-binutils-gdb-b18220936c6a1c660a108b88165c1972944e51fc.tar.gz
fsf-binutils-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/macro.c')
-rw-r--r--gas/macro.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/macro.c b/gas/macro.c
index b360b2e..e2cfbee 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -84,6 +84,12 @@ macro_init (int alternate, int mri, int strip_at,
macro_expr = exp;
}
+void
+macro_end (void)
+{
+ htab_delete (macro_hash);
+}
+
/* Switch in and out of alternate mode on the fly. */
void