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