Kill per-namespace static_decls.
authorNathan Sidwell <nathan@acm.org>
Fri, 5 May 2017 11:30:49 +0000 (11:30 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 5 May 2017 11:30:49 +0000 (11:30 +0000)
commit3031802941cd7d20148b5992e7ca0ceca87ed2e9
tree0a0daba69572b7e5632109f589365d5c5cce8ab5
parentf71425227e511e736589c74879b2c80dd6717676
Kill per-namespace static_decls.

* cp-tree.h (static_decls): Declare.
(wrapup_globals_for_namespace)
diagnose_inline_vars_for_namespace): Replace with ...
(wrapup_namespace_globals): ... this.
* decl.c (static_decls): Define.
(wrapup_globals_for_namespace)
diagnose_inline_vars_for_namespace): Replace with ...
(wrapup_namespace_globals): ... this.
(cxx_init_decl_processing): Initialize static_decls.
* decl2.c (c_parse_final_cleanups): Adjust.
* name-lookup.h (cp_binding_level): Remove static_decls member.
* name-lookup.c (add_decl_to_level): Adjust.
(begin_scope): Adjust.
((--This line, and those below, will be ignored--

M    cp/cp-tree.h
M    cp/name-lookup.c
M    cp/name-lookup.h
M    cp/ChangeLog
M    cp/decl2.c
M    cp/decl.c

From-SVN: r247633
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h