]> gcc.gnu.org Git - gcc.git/commitdiff
hashtab.c (hash_pointer): Delete low-order bits which are probably zero, also elimina...
authorHorst von Brand <vonbrand@sleipnir.valparaiso.cl>
Tue, 16 May 2000 16:59:20 +0000 (16:59 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 16 May 2000 16:59:20 +0000 (16:59 +0000)
        * hashtab.c (hash_pointer): Delete low-order bits which are
probably zero, also eliminate a warning on alpha.

From-SVN: r33934

libiberty/ChangeLog
libiberty/hashtab.c

index 4b37789ba782bfbeae81f1211f7517d26494279e..6d11a07ae81e32ecbcfcbdfc23f79ff099bf2d53 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 0c0b9a854e4862d64be0289cd471a674896a5757..f3ee301fd550b43abc1d54d83e18883fe6b27ad6 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.  */
This page took 0.072706 seconds and 5 git commands to generate.