Use libiberty hash in gas/macro.c.
authorMartin Liska <mliska@suse.cz>
Sat, 15 Aug 2020 17:47:01 +0000 (19:47 +0200)
committerAlan Modra <amodra@gmail.com>
Thu, 20 Aug 2020 01:23:40 +0000 (10:53 +0930)
commit2b272f449e8664977d0aafba82c416b27b5f2d6f
tree7ea3e404d7c0b07aeac6fb4f3ae2e142d23fd534
parentabebb03c3af215d7542f5e6b71d78823b15220d5
Use libiberty hash in gas/macro.c.

* config/tc-iq2000.c (iq2000_add_macro): Use htab hash table.
* 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.
* 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/ChangeLog
gas/config/tc-iq2000.c
gas/macro.c
gas/macro.h
This page took 0.024156 seconds and 4 git commands to generate.