diff options
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 0450a3d..5d618ab 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-25 Richard Sandiford <richard.sandiford@arm.com> + + * objc-act.c (decl_name_hash): Inherit from nofree_ptr_hash rather + than typed_noop_remove. Remove redudant typedefs. + 2015-06-17 Andrew MacLeod <amacleod@redhat.com> * objc-act.c: Do not include input.h, line-map.h or is-a.h. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 58f4760..53e50e5 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -3856,10 +3856,8 @@ objc_get_class_ivars (tree class_name) more like a set). So, we store the DECLs, but define equality as DECLs having the same name, and hash as the hash of the name. */ -struct decl_name_hash : typed_noop_remove <tree_node> +struct decl_name_hash : nofree_ptr_hash <tree_node> { - typedef tree_node *value_type; - typedef tree_node *compare_type; static inline hashval_t hash (const tree_node *); static inline bool equal (const tree_node *, const tree_node *); }; |