This is an automated email from the git hooks/post-receive script.
unknown user pushed a commit to branch aoliva/libcp1 in repository gcc.
commit 5cc4ecf9d55a494f1936b721560b2459e10123ea Author: Alexandre Oliva aoliva@redhat.com Date: Thu Jul 23 11:50:30 2015 -0300
libcp1plugin: update to new hashtable interface --- libcc1/libcp1plugin.cc | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 862803e..c868142 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -112,11 +112,8 @@ struct decl_addr_value tree address; };
-struct decl_addr_hasher : typed_free_remove<decl_addr_value> +struct decl_addr_hasher : free_ptr_hash<decl_addr_value> { - typedef decl_addr_value *value_type; - typedef decl_addr_value *compare_type; - static inline hashval_t hash (const decl_addr_value *); static inline bool equal (const decl_addr_value *, const decl_addr_value *); }; @@ -135,11 +132,8 @@ decl_addr_hasher::equal (const decl_addr_value *p1, const decl [...]
-struct string_hasher : typed_noop_remove<const char> +struct string_hasher : nofree_ptr_hash<const char> { - typedef const char *value_type; - typedef const char *compare_type; - static inline hashval_t hash (const char *s) { return htab_hash_string (s); @@ -161,7 +155,7 @@ struct plugin_context : public cc1_plugin::connection hash_table<decl_addr_hasher> address_map;
// A collection of trees that are preserved for the GC. - hash_table< pointer_hash<tree_node> > preserved; + hash_table< nofree_ptr_hash<tree_node> > preserved;
// File name cache. hash_table<string_hasher> file_names; @@ -230,9 +224,8 @@ plugin_context::mark () ggc_mark ((*it)->address); }
- for (hash_table< pointer_hash<tree_node> >::iterator it = preserved.begin (); - it != preserved.end (); - ++it) + for (hash_table< nofree_ptr_hash<tree_node> >::iterator + it = preserved.begin (); it != preserved.end (); ++it) ggc_mark (&*it); }