module.cc (struct unnamed_entity): GTY it.

gcc/cp/
	* module.cc (struct unnamed_entity): GTY it.
	(unnamed_map): Not a GTY object.

From-SVN: r273014
This commit is contained in:
Nathan Sidwell
2019-07-03 17:42:53 +00:00
committed by Nathan Sidwell
parent 4cddaa61d0
commit 106fe4aaa3
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
2019-07-03 Nathan Sidwell <nathan@acm.org>
gcc/cp/
* module.cc (struct unnamed_entity): GTY it.
(unnamed_map): Not a GTY object.
gcc/cp/
* module.cc (trees_{in,out}::fn_parms): Rename to ...
(trees_{in,out}::fn_arg_types): ... this.

View File

@@ -3122,7 +3122,7 @@ static loc_spans spans;
/********************************************************************/
/* Unnamed declarations. (a) voldemort types, (b) instantiations. */
struct unnamed_entity
struct GTY(()) unnamed_entity
{
mc_slot slot; /* The decl, or section number. */
tree ns; /* If a specialization, the ns::id it specializes. */
@@ -17506,7 +17506,7 @@ init_module_processing (cpp_reader *reader)
if (!flag_preprocess_only)
{
unnamed_map = unnamed_map_t::create_ggc (31);
unnamed_map = new unnamed_map_t (31);
specset::table = new specset::hash (400);
}
@@ -17665,6 +17665,7 @@ finish_module_processing (cpp_reader *reader)
modules_hash = NULL;
/* Or unnamed entitites. */
delete unnamed_map;
unnamed_map = NULL;
unnamed_ary = NULL;