On 06/16/2015 03:03 AM, Richard Sandiford wrote:
Like the previous patch, but for ggc_cache_hasher.

gcc/
        * hash-traits.h (ggc_cache_hasher): Rename to...
        (ggc_cache_remove): ...this and remove typedefs.
        (ggc_cache_ptr_hash): New class.
        * hash-table.h: Update commentary.
        * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
        rather than ggc_cache_hasher.
        (const_wide_int_hasher, reg_attr_hasher): Likewise.
        (const_double_hasher, const_fixed_hasher): Likewise.
        * function.c (insn_cache_hasher): Likewise.
        * trans-mem.c (tm_wrapper_hasher): Likewise.
        * tree.h (tree_decl_map_cache_hasher): Likewise.
        * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
        (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
        * ubsan.c (tree_type_map_cache_hasher): Likewise.
        * varasm.c (tm_clone_hasher): Likewise.
        * config/i386/i386.c (dllimport_hasher): Likewise.
        * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
        (tree_hasher): Likewise.

gcc/ada/
        * gcc-interface/decl.c (value_annotation_hasher): Inherit from
        ggc_cache_ptr_hash rather than ggc_cache_hasher.
        * gcc-interface/utils.c (pad_type_hasher): Likewise.
Same as others -- concern about multiple inheritance.  Otherwise it's OK.

jeff

Reply via email to