On 06/23/2015 08:49 AM, Richard Sandiford wrote:
This patch replaces various string hashers with a single copy
in hash-traits.h.


gcc/
        * hash-traits.h (string_hash, nofree_string_hash): New classes.
        * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
        * passes.c (pass_registry_hasher): Likewise.
        * config/alpha/alpha.c (string_traits): Likewise.
        * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
        * config/m32c/m32c.c (pragma_traits): Likewise.
        * config/mep/mep.c (pragma_traits): Likewise.

gcc/java/
        * jcf-io.c (memoized_class_lookups): Use nofree_string_hash.
        (find_class): Likewise.
OK.
jeff

Reply via email to