This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]