summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-11 01:28:28 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-11 01:28:28 +0000
commit957b210f692eb80d24b8325a7ceda7079b4ae470 (patch)
treece6867533bcc6e070fefb45e423ccc798dd10ca8 /gcc/cp
parent126fb0126570173b40960c97f8cbcb3fc3c376e1 (diff)
downloadgcc-957b210f692eb80d24b8325a7ceda7079b4ae470.tar.gz
cp:
* decl.c (typename_hash): Use htab_hash_pointer. gcc: * fold-const.c (size_htab_hash): Use htab_hash_pointer. * function.c (insns_for_mem_hash): Likewise. * varasm.c (STRHASH): Likewise. java: * class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58036 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8261bc95de7..0c5af6eea00 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * decl.c (typename_hash): Use htab_hash_pointer.
+
2002-10-10 Jim Wilson <wilson@redhat.com>
* decl.c (duplicate_decls): Don't call decl_attributes.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index ad083d0058c..735aa1ba2e4 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5516,8 +5516,8 @@ typename_hash (k)
hashval_t hash;
tree t = (tree) k;
- hash = (((hashval_t) TYPE_CONTEXT (t))
- ^ ((hashval_t) DECL_NAME (TYPE_NAME (t))));
+ hash = (htab_hash_pointer (TYPE_CONTEXT (t))
+ ^ htab_hash_pointer (DECL_NAME (TYPE_NAME (t))));
return hash;
}