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
+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
&& 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.