r254731 - in /trunk/gcc: ChangeLog cp/ChangeLog...
jason@gcc.gnu.org
jason@gcc.gnu.org
Tue Nov 14 16:02:00 GMT 2017
Author: jason
Date: Tue Nov 14 16:02:57 2017
New Revision: 254731
URL: https://gcc.gnu.org/viewcvs?rev=254731&root=gcc&view=rev
Log:
Support GTY((cache)) on hash_map.
gcc/
* hash-traits.h (ggc_remove): Add ggc_maybe_mx member function.
(ggc_cache_remove): Override it instead of ggc_mx.
* hash-table.h (gt_ggc_mx): Call it instead of ggc_mx.
(gt_cleare_cache): Call ggc_mx instead of gt_ggc_mx.
* hash-map-traits.h (simple_hashmap_traits): Add maybe_mx member.
(simple_cache_map_traits): Override maybe_mx.
* hash-map.h (hash_entry): Add ggc_maybe_mx and keep_cache_entry.
(hash_map): Friend gt_cleare_cache.
(gt_cleare_cache): New.
* tree.h (tree_cache_traits): New hash_map traits class.
(tree_cache_map): New typedef.
gcc/cp/
* decl.c (decomp_type_table): Use tree_cache_map.
* init.c (nsdmi_inst): Likewise.
* pt.c (defarg_ints): Likewise.
* cp-objcp-common.c (cp_get_debug_type): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-objcp-common.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/init.c
trunk/gcc/cp/pt.c
trunk/gcc/hash-map-traits.h
trunk/gcc/hash-map.h
trunk/gcc/hash-table.h
trunk/gcc/hash-traits.h
trunk/gcc/tree.h
More information about the Gcc-cvs
mailing list