diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-06-25 17:06:36 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-06-25 17:06:36 +0000 |
commit | ca752f3929677221a5806daf4940367308fc16d7 (patch) | |
tree | d35764dd52f6e222b536f1063b2e147b652cc9b6 /gcc/config | |
parent | 95fbe13e99744b36691495fd81934ccee963c0a3 (diff) | |
download | gcc-ca752f3929677221a5806daf4940367308fc16d7.zip gcc-ca752f3929677221a5806daf4940367308fc16d7.tar.gz gcc-ca752f3929677221a5806daf4940367308fc16d7.tar.bz2 |
hash-traits.h (ggc_hasher): Rename to...
gcc/
* hash-traits.h (ggc_hasher): Rename to...
(ggc_remover): ...this and remove typedefs.
(ggc_cache_hasher): Update accordingly. Add typedefs.
(ggc_ptr_hash): New class.
* hash-table.h: Update comment.
* cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
ggc_hasher.
* cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
(tree_descriptor_hasher): Likewise.
* cgraph.c (function_version_hasher): Likewise.
* dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
(decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
(dw_loc_list_hasher, addr_hasher): Likewise.
* function.h (used_type_hasher): Likewise.
* function.c (temp_address_hasher): Likewise.
* gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
* libfuncs.h (libfunc_hasher): Likewise.
* lto-streamer.h (decl_state_hasher): Likewise.
* optabs.c (libfunc_decl_hasher): Likewise.
* tree-scalar-evolution.c (scev_info_hasher): Likewise.
* varasm.c (section_hasher, object_block_hasher): Likewise.
(const_rtx_desc_hasher): Likewise.
* config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
* config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
gcc/c-family/
* c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
ggc_hasher.
gcc/cp/
* constexpr.c (constexpr_fundef_hasher): Inherit from ggc_ptr_hash
rather than ggc_hasher.
(constexpr_call_hasher): Likewise.
* cp-tree.h (cxx_int_tree_map_hasher, named_label_hasher): Likewise.
* decl.c (typename_hasher): Likewise.
* mangle.c (conv_type_hasher): Likewise.
* pt.c (spec_hasher): Likewise.
* tree.c (cplus_array_hasher, list_hasher): Likewise.
* typeck2.c (abstract_type_hasher): Likewise.
gcc/fortran/
* trans-decl.c (module_hasher): Likewise.
* trans.h (module_decl_hasher): Likewise.
gcc/java/
* java-tree.h (treetreehasher): Inherit from ggc_ptr_hash
rather than ggc_hasher.
(ict_hasher, type_assertion_hasher): Likewise.
gcc/objc/
* objc-act.c (objc_string_hasher): Inherit from ggc_ptr_hash
rather than ggc_hasher.
From-SVN: r224959
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/darwin.c | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 3627ba6..93c6d67 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -477,7 +477,7 @@ typedef struct GTY ((for_user)) machopic_indirection bool used; } machopic_indirection; -struct indirection_hasher : ggc_hasher<machopic_indirection *> +struct indirection_hasher : ggc_ptr_hash<machopic_indirection> { typedef const char *compare_type; static hashval_t hash (machopic_indirection *); @@ -3271,7 +3271,7 @@ typedef struct GTY ((for_user)) cfstring_descriptor { tree constructor; } cfstring_descriptor; -struct cfstring_hasher : ggc_hasher<cfstring_descriptor *> +struct cfstring_hasher : ggc_ptr_hash<cfstring_descriptor> { static hashval_t hash (cfstring_descriptor *); static bool equal (cfstring_descriptor *, cfstring_descriptor *); diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 56acc86..38442ec 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -1228,7 +1228,7 @@ struct GTY((for_user)) toc_hash_struct int labelno; }; -struct toc_hasher : ggc_hasher<toc_hash_struct *> +struct toc_hasher : ggc_ptr_hash<toc_hash_struct> { static hashval_t hash (toc_hash_struct *); static bool equal (toc_hash_struct *, toc_hash_struct *); @@ -1245,7 +1245,7 @@ struct GTY((for_user)) builtin_hash_struct unsigned char uns_p[4]; /* and whether the types are unsigned. */ }; -struct builtin_hasher : ggc_hasher<builtin_hash_struct *> +struct builtin_hasher : ggc_ptr_hash<builtin_hash_struct> { static hashval_t hash (builtin_hash_struct *); static bool equal (builtin_hash_struct *, builtin_hash_struct *); |