diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 17:16:23 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 17:16:23 +0000 |
commit | cbfc4bfa9965a87780a24f47a72e9849180ab043 (patch) | |
tree | ef11c0ce585dd35735de0a607dd716f3fa308d6e /gcc/config/mep/mep.c | |
parent | 22fd03a551df35a59ba22f3f68464a7b25379c32 (diff) | |
download | gcc-cbfc4bfa9965a87780a24f47a72e9849180ab043.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224971 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mep/mep.c')
-rw-r--r-- | gcc/config/mep/mep.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index 5f710e24105..3698bb06e19 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -4071,15 +4071,7 @@ struct GTY(()) pragma_entry { int flag; }; -struct pragma_traits : default_hashmap_traits -{ - static hashval_t hash (const char *s) { return htab_hash_string (s); } - static bool - equal_keys (const char *a, const char *b) - { - return strcmp (a, b) == 0; - } -}; +typedef simple_hashmap_traits<nofree_string_hash> pragma_traits; /* Hash table of farcall-tagged sections. */ static GTY(()) hash_map<const char *, pragma_entry, pragma_traits> * |