Inline and using namespace representation change.
authorNathan Sidwell <nathan@acm.org>
Fri, 26 May 2017 17:19:46 +0000 (17:19 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 26 May 2017 17:19:46 +0000 (17:19 +0000)
commit3c9feefc8d6372d0e24070b53b40c2a36026e798
tree6a5cd764e175f48eba5d5bc8790e0fb35ffd6e93
parent5596d26a5c2df26fc591c8dad0e2bc87ee2f88e2
Inline and using namespace representation change.

gcc/cp/
Inline and using namespace representation change.
* cp-tree.h (struct lang_decl_ns): Delete ns_using.  Add usings,
inlinees as vector.
(DECL_NAMESPACE_USING): Adjust.
(DECL_NAMESPACE_INLINEES): New.
* name-lookup.h (struct cp_binding_level): Change usings
representation.
* name-lookup.c (name_lookup::do_queue_usings)
name_lookup::queue_usings): Adjust.
(name_lookup::search_namespace, name_lookup::search_usings)
name_lookup::queue_namespace): Adjust.
(name_lookup::adl_namespace_only): Adjust.
(add_using_namespace, push_namespace): Push onto vector.
(pop_namespace): Add timing logic.

libcc1/
* libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
((--This line, and those below, will be ignored--

M    gcc/cp/ChangeLog
M    gcc/cp/cp-tree.h
M    gcc/cp/name-lookup.c
M    gcc/cp/name-lookup.h
M    libcc1/libcp1plugin.cc
M    libcc1/ChangeLog

From-SVN: r248520
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
libcc1/ChangeLog
libcc1/libcp1plugin.cc