hashtab.c (hash_pointer): Delete low-order bits which are probably zero, also eliminate a warning on alpha.

* hashtab.c (hash_pointer): Delete low-order bits which are
	probably zero, also eliminate a warning on alpha.

From-SVN: r33934
This commit is contained in:
Horst von Brand 2000-05-16 16:59:20 +00:00 committed by Mark Mitchell
parent d651ee8177
commit 1d2da2e1ce
2 changed files with 6 additions and 1 deletions

View 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

View 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. */