[PATCH 2/4] Use libiberty hash in gas/macro.c.
Martin Liska
mliska@suse.cz
Sat Aug 15 17:47:01 GMT 2020
ChangeLog:
* gas/as.h: Include hashtab.h.
* gas/config/tc-iq2000.c (iq2000_add_macro):
Use htab hash table.
* gas/macro.c (struct hash_control): Use htab.
(macro_init): Likewise.
(do_formals): Likewise.
(free_macro): Likewise.
(define_macro): Likewise.
(sub_actual): Likewise.
(macro_expand_body): Likewise.
(macro_expand): Likewise.
(check_macro): Likewise.
(delete_macro): Likewise.
(expand_irp): Likewise.
* gas/macro.h (struct macro_hash_entry): New struct.
(hash_macro_entry): New.
(eq_macro_entry): Likewise.
(macro_entry_alloc): Likewise.
(macro_entry_find): Likewise.
(struct formal_hash_entry): Likewise.
(hash_formal_entry): Likewise.
(eq_formal_entry): Likewise.
(formal_entry_alloc): Likewise.
(formal_entry_find): Likewise.
---
gas/as.h | 1 +
gas/config/tc-iq2000.c | 14 ++++---
gas/macro.c | 63 ++++++++++++++--------------
gas/macro.h | 94 +++++++++++++++++++++++++++++++++++++++++-
4 files changed, 134 insertions(+), 38 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-libiberty-hash-in-gas-macro.c.patch
Type: text/x-patch
Size: 12791 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200815/e1840835/attachment-0001.bin>
More information about the Binutils
mailing list