From: Mike Stump Date: Fri, 9 Mar 2001 17:03:46 +0000 (+0000) Subject: * cselib.c (hash_rtx): Ensure that hash isn't zero upon return. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc647e999c54d025c07c5b4f5a674a6f271676a0;p=gcc.git * cselib.c (hash_rtx): Ensure that hash isn't zero upon return. From-SVN: r40346 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d3a530b08b..8c5463b56b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 9 09:00:36 2001 Mike Stump + + * cselib.c (hash_rtx): Ensure that hash isn't zero upon return. + Fri Mar 9 17:38:08 CET 2001 Jan Hubicka * i386.h (mask_64bit): New constant. diff --git a/gcc/cselib.c b/gcc/cselib.c index 0dbc3ab618a..10f17e21669 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -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);