Commit 89bd2c03 by Ollie Wild Committed by Ollie Wild

name-lookup.c (add_decl_to_level): Remove addition to vtables chain.

	gcc/cp/
	* name-lookup.c (add_decl_to_level): Remove addition to vtables chain.
	* name-lookup.h (cp_binding_level): Remove vtables member.

From-SVN: r127765
parent 972ce83e
2007-08-24 Ollie Wild <aaw@google.com>
* name-lookup.c (add_decl_to_level): Remove addition to vtables chain.
* name-lookup.h (cp_binding_level): Remove vtables member.
2007-08-24 Richard Guenther <rguenther@suse.de> 2007-08-24 Richard Guenther <rguenther@suse.de>
* tree.c (cp_cannot_inline_tree_fn): Remove. * tree.c (cp_cannot_inline_tree_fn): Remove.
......
...@@ -536,17 +536,16 @@ supplement_binding (cxx_binding *binding, tree decl) ...@@ -536,17 +536,16 @@ supplement_binding (cxx_binding *binding, tree decl)
static void static void
add_decl_to_level (tree decl, cxx_scope *b) add_decl_to_level (tree decl, cxx_scope *b)
{ {
/* We used to record virtual tables as if they were ordinary
variables, but no longer do so. */
gcc_assert (!(TREE_CODE (decl) == VAR_DECL && DECL_VIRTUAL_P (decl)));
if (TREE_CODE (decl) == NAMESPACE_DECL if (TREE_CODE (decl) == NAMESPACE_DECL
&& !DECL_NAMESPACE_ALIAS (decl)) && !DECL_NAMESPACE_ALIAS (decl))
{ {
TREE_CHAIN (decl) = b->namespaces; TREE_CHAIN (decl) = b->namespaces;
b->namespaces = decl; b->namespaces = decl;
} }
else if (TREE_CODE (decl) == VAR_DECL && DECL_VIRTUAL_P (decl))
{
TREE_CHAIN (decl) = b->vtables;
b->vtables = decl;
}
else else
{ {
/* We build up the list in reverse order, and reverse it later if /* We build up the list in reverse order, and reverse it later if
......
...@@ -190,9 +190,6 @@ struct cp_binding_level GTY(()) ...@@ -190,9 +190,6 @@ struct cp_binding_level GTY(())
/* An array of static functions and variables (for namespaces only) */ /* An array of static functions and variables (for namespaces only) */
VEC(tree,gc) *static_decls; VEC(tree,gc) *static_decls;
/* A chain of VTABLE_DECL nodes. */
tree vtables;
/* A list of USING_DECL nodes. */ /* A list of USING_DECL nodes. */
tree usings; tree usings;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment