r253489 - in /trunk/gcc/cp: ChangeLog cp-tree.h...
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Fri Oct 6 13:15:00 GMT 2017
Author: nathan
Date: Fri Oct 6 13:15:23 2017
New Revision: 253489
URL: https://gcc.gnu.org/viewcvs?rev=253489&root=gcc&view=rev
Log:
[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.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/lex.c
trunk/gcc/cp/name-lookup.c
More information about the Gcc-cvs
mailing list