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
This commit is contained in:
parent
d59dc888de
commit
b4ca4f9e32
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue