summaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-15 12:59:26 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-15 12:59:26 +0000
commit66fa2987d7a911136becef9006da422797d81e46 (patch)
treeb9f47da132c30ccaa7f6f3a4faac892bbf803362 /gcc/cselib.c
parent5c74c9e4ecbf72fbd32c987460886b8cf50ddda1 (diff)
downloadgcc-66fa2987d7a911136becef9006da422797d81e46.tar.gz
Fix hashing of REG/MEM values.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index 10f17e21669..c0aa0e659bb 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -579,8 +579,7 @@ hash_rtx (x, mode, create)
if (! e)
return 0;
- hash += e->value;
- return hash ? hash : (unsigned int) MEM;
+ return e->value;
case CONST_INT:
hash += ((unsigned) CONST_INT << 7) + (unsigned) mode + INTVAL (x);