cp-tree.h (pushdecl, [...]): Move declarations to ...
authorNathan Sidwell <nathan@acm.org>
Thu, 11 May 2017 11:57:01 +0000 (11:57 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 11 May 2017 11:57:01 +0000 (11:57 +0000)
commit056a17ee6ca8f0fcd318d0dfba18f277e05a3579
tree50d199435215cadff254d6afbe14e7cff70a79d4
parent9c82d7b68ed064386dcfa78d8894c7fb39f4eddb
cp-tree.h (pushdecl, [...]): Move declarations to ...

* cp-tree.h (pushdecl, pushdecl_maybe_friend, pushtag)
pushtag_top_level_maybe_friend,
pushdecl_top_level_and_finish): Move declarations to ...
* name-lookup.h: ... here.  Group pushdecl variants.
(pushdecl_top_level_and_finish): Rename to ...
(pushdecl_top_level_with_init): ... here.
* decl.c (cp_make_fname_decl): Use pushdecl_top_level_with_init.
* decl2.c (get_guard, handle_tls_init): Likewise.
* rtti.c (get_tinfo_decl, tinfo_base_init): Likewise.
* lambda.c (maybe_add_lambda_conv_op): Use namespace_bindings_p.
* method.c (implicitly_declare_fn): Likewise.
* searchc (node_debug_info_needed): Likewise.
* name-lookup.c (pushdecl_top_level_and_finish): Rename to ...
(pushdecl_top_level_with_init): ... here.
(pop_everything): Use namespace_bindings_p.
(--This line, and those below, will be ignored--

M    cp/ChangeLog
M    cp/method.c
M    cp/cp-tree.h
M    cp/decl.c
M    cp/lambda.c
M    cp/rtti.c
M    cp/name-lookup.c
M    cp/decl2.c
M    cp/name-lookup.h
M    cp/search.c

From-SVN: r247902
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lambda.c
gcc/cp/method.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/rtti.c
gcc/cp/search.c