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/
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
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
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
--
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