From e51b357b51c0b8941aadd5954c4a41e01224574f Mon Sep 17 00:00:00 2001 From: mmitchel Date: Tue, 16 May 2000 16:59:20 +0000 Subject: * hashtab.c (hash_pointer): Delete low-order bits which are probably zero, also eliminate a warning on alpha. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33934 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/ChangeLog | 5 +++++ libiberty/hashtab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 4b37789ba78..6d11a07ae81 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2000-05-16 Horst von Brand + + * hashtab.c (hash_pointer): Delete low-order bits which are + probably zero, also eliminate a warning on alpha. + 2000-05-15 David Edelsohn * Makefile.in: Change "pic" to depend on $(PICFLAG), not diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c index 0c0b9a854e4..f3ee301fd55 100644 --- a/libiberty/hashtab.c +++ b/libiberty/hashtab.c @@ -104,7 +104,7 @@ static hashval_t hash_pointer (p) const void *p; { - return (hashval_t) p; + return (hashval_t) ((long)p >> 3); } /* Returns non-zero if P1 and P2 are equal. */ -- cgit v1.2.1