[lto][patch] Clear DECL_CONTEXT if it is a NAMESPACE_DECL

Rafael Espindola espindola@google.com
Wed Jan 7 14:37:00 GMT 2009


We don't use DECL_CONTEXT that are NAMESPACE_DECL in lto1. In fact, I
am not sure if we use namespaces at all. This patch clears
DECL_CONTEXT to save some memory and disk.

Did a bootstrap and a regression test on linux x86-64.

2009-01-07  Rafael Avila de Espindola  <espindola@google.com>

	* tree.c (reset_decl_lang_specific): Clear DECL_CONTEXT if it is a
	NAMESPACE_DECL.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namespace.patch
Type: text/x-patch
Size: 924 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090107/225a3347/attachment.bin>


More information about the Gcc-patches mailing list