mbox series

[0/3] Add htab_eq_string to libiberty

Message ID 20210505213317.513520-1-tom@tromey.com
Headers show
Series Add htab_eq_string to libiberty | expand

Message

Tom Tromey May 5, 2021, 9:33 p.m. UTC
The libiberty hash table defines a hash function for strings, but not
an equality function.  This means that various files have had to
implement their own comparison function over the years.

This series resolves this for gcc.  Once this is in, I plan to import
the change into binutils-gdb and apply a similar fix there.

While examining all the uses of htab_hash_string, I found an oddity
related to this in libcpp.  I've filed PR preprocessor/100435 for
this.

Tom