* cselib.c (hash_rtx): Ensure that hash isn't zero upon return.

From-SVN: r40346
This commit is contained in:
Mike Stump 2001-03-09 17:03:46 +00:00 committed by Mike Stump
parent 25f94bb5d3
commit dc647e999c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Fri Mar 9 09:00:36 2001 Mike Stump <mrs@wrs.com>
* cselib.c (hash_rtx): Ensure that hash isn't zero upon return.
Fri Mar 9 17:38:08 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.h (mask_64bit): New constant.

View File

@ -580,7 +580,7 @@ hash_rtx (x, mode, create)
return 0;
hash += e->value;
return hash;
return hash ? hash : (unsigned int) MEM;
case CONST_INT:
hash += ((unsigned) CONST_INT << 7) + (unsigned) mode + INTVAL (x);