Commit b4ca4f9e by Richard Guenther Committed by Richard Biener

tree.c (cp_free_lang_data): Free DECL_NAMESPACE_USERS and clear DECL_CHAIN of NAMESPACE_DECLs.

2010-10-12  Richard Guenther  <rguenther@suse.de>

	* tree.c (cp_free_lang_data): Free DECL_NAMESPACE_USERS and
	clear DECL_CHAIN of NAMESPACE_DECLs.

From-SVN: r165413
parent d59dc888
2010-10-13 Richard Guenther <rguenther@suse.de>
* tree.c (cp_free_lang_data): Free DECL_NAMESPACE_USERS and
clear DECL_CHAIN of NAMESPACE_DECLs.
2010-10-11 Martin Jambor <mjambor@suse.cz>
PR c++/45562
......
......@@ -3265,6 +3265,15 @@ cp_free_lang_data (tree t)
&& ANON_AGGRNAME_P (name))
TYPE_NAME (t) = NULL_TREE;
}
if (TREE_CODE (t) == NAMESPACE_DECL)
{
/* The list of users of a namespace isn't useful for the middle-end
or debug generators. */
DECL_NAMESPACE_USERS (t) = NULL_TREE;
/* Neither do we need the leftover chaining of namespaces
from the binding level. */
DECL_CHAIN (t) = NULL_TREE;
}
}
/* Stub for c-common. Please keep in sync with c-decl.c.
......
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