aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/java-tree.h6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index edc2c55..6a93304 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,5 +1,11 @@
2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
+ * java-tree.h (treetreehasher): Inherit from ggc_ptr_hash
+ rather than ggc_hasher.
+ (ict_hasher, type_assertion_hasher): Likewise.
+
+2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
+
* jcf-io.c (charstar_hash): Inherit from nofree_ptr_hash rather
than typed_noop_remove. Remove redudant typedefs.
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 7c9a519..c299119 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -714,7 +714,7 @@ struct GTY((for_user)) treetreehash_entry {
tree value;
};
-struct treetreehasher : ggc_hasher<treetreehash_entry *>
+struct treetreehasher : ggc_ptr_hash<treetreehash_entry>
{
typedef tree compare_type;
@@ -722,7 +722,7 @@ struct treetreehasher : ggc_hasher<treetreehash_entry *>
static bool equal (treetreehash_entry *, tree);
};
-struct ict_hasher : ggc_hasher<tree_node *>
+struct ict_hasher : ggc_ptr_hash<tree_node>
{
static hashval_t hash (tree t) { return htab_hash_pointer (t); }
static bool equal (tree a, tree b) { return a == b; }
@@ -797,7 +797,7 @@ typedef struct GTY((for_user)) type_assertion {
tree op2; /* Second operand. */
} type_assertion;
-struct type_assertion_hasher : ggc_hasher<type_assertion *>
+struct type_assertion_hasher : ggc_ptr_hash<type_assertion>
{
static hashval_t hash (type_assertion *);
static bool equal (type_assertion *, type_assertion *);