This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to change hashtab.h hashval_t to size_t
> Perhaps we *could* address this in libiberty:
We "could" do a lot of things in libiberty, but choosing a hash value
that's appropriate to the specific application doesn't seem like
something that should be one of them. An optimal conversion depends
on the size and alignment of the item pointed to, as well as how many
there may be (indirectly, the size of the hash table) and their
expected spatial locality.
No reason why gcc can't define such a macro for its own use, though.