[C++ PATCH] use hash-table for namespace contents
authorNathan Sidwell <nathan@gcc.gnu.org>
Fri, 6 Oct 2017 13:15:23 +0000 (13:15 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 6 Oct 2017 13:15:23 +0000 (13:15 +0000)
commite833f686bb246d02dda9096653214ba657f460ba
treeec27346a76f573bc6c24d7ac5544092399bac9c5
parent816f83cfb7a82a48945384942c32c87659d4ad06
[C++ PATCH] use hash-table for namespace contents

https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00365.html
Use hash_table for namespace bindings
* cp-tree.h (struct named_decl_hash): New.
(lang_decl_ns): Change type of bindings field.
* lex.c (maybe_add_lang_decl_raw): Adjust.
* name-lookup.c (find_namespace_slot): Adjust.
(do_pushdecl): Push NULL-named namespace.
(do_push_nested_namespace): Adjust.
(push_namespace): Push anonymous namespace as NULL name.

From-SVN: r253489
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/lex.c
gcc/cp/name-lookup.c