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
On Oct 9, 2002, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
> Your points are certainly valid. However I'm still concerned that the
> truncation may result in poor hash values. If we're not going to
> address this in libiberty, then perhaps we should address it in gcc
> itself like you said.
Perhaps we *could* address this in libiberty: have a macro that
converts a pointer type to a value that can be passed to the hash
function that doesn't trigger warnings and tries not to lose
significant bits. Then adjust GCC to use such a macro whenever it
wants to pass a pointer to the function that computes a hash.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer