summaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-16 16:59:20 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-16 16:59:20 +0000
commite51b357b51c0b8941aadd5954c4a41e01224574f (patch)
tree1ee9fadb013b968d6dabc8bf4bbb38492f5703cb /libiberty/hashtab.c
parent6550c261298cd0ab417739fe9c963d32a4d7935e (diff)
downloadgcc-e51b357b51c0b8941aadd5954c4a41e01224574f.tar.gz
* 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
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r--libiberty/hashtab.c2
1 files changed, 1 insertions, 1 deletions
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. */