global trees

2020-11-17 Thread Nathan Sidwell
This reorders the common and c++ global tree arrays. It introduces a module-specific High Water Mark, below which are the immutable slots initialized at startup and beyond which are the lazily filled slots (and a few immutables we need to locate by name lookup anyway). gcc/c-family/

Re: [19/32] global trees

2020-11-06 Thread Jeff Law via Gcc-patches
On 11/3/20 2:16 PM, Nathan Sidwell wrote: > We directly reference global trees, and expect them to be immutable. > This reorders the global tree arrays, moving the mutable ones after a > High Water Mark.  Those after the HWM are not directly accessed in the > module machinery (we

[19/32] global trees

2020-11-03 Thread Nathan Sidwell
We directly reference global trees, and expect them to be immutable. This reorders the global tree arrays, moving the mutable ones after a High Water Mark. Those after the HWM are not directly accessed in the module machinery (we'll reference by name or equivalent). -- Nathan Sidwell

[C++ PATCH] make eh fn nodes global trees

2017-05-22 Thread Nathan Sidwell
This patch neatens up the recent change in except.c to register GTY roots. I've made them all global trees. Whilst there I noticed except's declare_library_fn could be doing more work, rather than its callers repeat themselves. Also renamed a couple of global trees to be more mn

[C++ PATCH[ global trees

2017-05-04 Thread Nathan Sidwell
-- Nathan Sidwell 2017-05-04 Nathan Sidwell More global trees. * cp-tree.h (enum cp_tree_index): Add CPTI_GLOBAL, CPTI_GLOBAL_TYPE, CPTI_GLOBAL_IDENTIFIER, CPTI_ANON_IDENTIFIER, CPTI_INIT_LIST_IDENTIFIER. (global_namespace, global_type_node, global_identifier, anon_identifier