mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
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:
committed by
Nathan Sidwell
parent
4cddaa61d0
commit
106fe4aaa3
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user