OSDN Git Service

* hashtab.c (hash_pointer): Delete low-order bits which are
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 May 2000 16:59:20 +0000 (16:59 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 May 2000 16:59:20 +0000 (16:59 +0000)
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
libiberty/hashtab.c

index 4b37789..6d11a07 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-16  Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
+
+        * hashtab.c (hash_pointer): Delete low-order bits which are
+       probably zero, also eliminate a warning on alpha.
+
 2000-05-15  David Edelsohn  <edelsohn@gnu.org>
 
        * Makefile.in: Change "pic" to depend on $(PICFLAG), not
index 0c0b9a8..f3ee301 100644 (file)
@@ -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.  */