[v2 0/9] RFC: port gas to use libiberty htab hash table
Martin Liska
mliska@suse.cz
Wed Aug 19 08:28:47 GMT 2020
Hello.
There's second version of the patch set where I did:
- New htab_t related functions are implemented in gas/hash.c, libiberty
maintainer was not happy about moving them to libiberty.
- New str_hash_* function were added to support a string hash table
based on htab_t.
- Legacy hash table is removed in gas/hash.[ch]
- Two related options are removed (--reduce-memory-overheads, --hash-size arguments)
I tested the patchset on all targets.
Thoughts?
Martin
Martin Liska (9):
gas/hash.c: add new functions
Use libiberty hash in gas/macro.c.
Use libiberty hash in gas/read.c.
Use libiberty hash in gas/symbols.c.
Add new string hash table based on htab_t.
Port ecoff.c to str_hash.
Port dw2gencfi.c to str_htab.
Port gas/config/* to str_htab.
Remove --reduce-memory-overheads and --hash-size arguments.
gas/NEWS | 3 +
gas/as.c | 22 +-
gas/as.h | 2 +
gas/config/obj-coff-seh.c | 12 +-
gas/config/obj-coff.c | 12 +-
gas/config/obj-elf.c | 19 +-
gas/config/tc-aarch64.c | 119 ++++----
gas/config/tc-alpha.c | 41 ++-
gas/config/tc-arc.c | 62 ++--
gas/config/tc-arm.c | 121 ++++----
gas/config/tc-avr.c | 32 ++-
gas/config/tc-cr16.c | 53 ++--
gas/config/tc-cris.c | 15 +-
gas/config/tc-crx.c | 43 +--
gas/config/tc-csky.c | 34 +--
gas/config/tc-d10v.c | 12 +-
gas/config/tc-d30v.c | 8 +-
gas/config/tc-dlx.c | 21 +-
gas/config/tc-ft32.c | 8 +-
gas/config/tc-h8300.c | 8 +-
gas/config/tc-hppa.c | 14 +-
gas/config/tc-i386.c | 52 ++--
gas/config/tc-ia64.c | 149 ++++------
gas/config/tc-iq2000.c | 14 +-
gas/config/tc-m68hc11.c | 18 +-
gas/config/tc-m68k.c | 27 +-
gas/config/tc-m68k.h | 2 +-
gas/config/tc-mcore.c | 8 +-
gas/config/tc-microblaze.c | 24 +-
gas/config/tc-mips.c | 50 ++--
gas/config/tc-mmix.c | 8 +-
gas/config/tc-mn10200.c | 8 +-
gas/config/tc-mn10300.c | 8 +-
gas/config/tc-moxie.c | 12 +-
gas/config/tc-msp430.c | 11 +-
gas/config/tc-nds32.c | 55 ++--
gas/config/tc-nios2.c | 62 +---
gas/config/tc-ns32k.c | 13 +-
gas/config/tc-pdp11.c | 10 +-
gas/config/tc-pj.c | 14 +-
gas/config/tc-ppc.c | 81 ++----
gas/config/tc-pru.c | 46 +--
gas/config/tc-riscv.c | 93 ++----
gas/config/tc-s390.c | 33 +--
gas/config/tc-score.c | 32 +--
gas/config/tc-score7.c | 30 +-
gas/config/tc-sh.c | 8 +-
gas/config/tc-sparc.c | 29 +-
gas/config/tc-spu.c | 21 +-
gas/config/tc-tic30.c | 66 ++---
gas/config/tc-tic4x.c | 59 ++--
gas/config/tc-tic54x.c | 201 +++++++------
gas/config/tc-tic6x.c | 13 +-
gas/config/tc-tilegx.c | 40 ++-
gas/config/tc-tilepro.c | 53 ++--
gas/config/tc-v850.c | 9 +-
gas/config/tc-vax.c | 26 +-
gas/config/tc-wasm32.c | 8 +-
gas/config/tc-xgate.c | 10 +-
gas/config/tc-z8k.c | 12 +-
gas/doc/as.texi | 13 -
gas/doc/internals.texi | 32 ---
gas/dw2gencfi.c | 18 +-
gas/ecoff.c | 31 +-
gas/hash.c | 563 +------------------------------------
gas/hash.h | 149 +++++-----
gas/macro.c | 65 ++---
gas/macro.h | 94 ++++++-
gas/read.c | 73 ++++-
gas/symbols.c | 117 +++++---
70 files changed, 1211 insertions(+), 2020 deletions(-)
--
2.28.0
More information about the Binutils
mailing list