[lto][patch] Clear TREE_LANG_FLAG_[0-6]

Rafael Espindola espindola@google.com
Mon Jan 12 14:24:00 GMT 2009

The attached patch clears the language specific flags. It also adds a
global variable to mark that language specific information is no
longer available so that we can avoid calling langhooks in cases where
it is hard to create a cleaner solution right now. The global variable
is also useful for asserting that we are not calling langhooks after
removing the info they use.

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

	* cgraphbuild.c (record_reference): Use lang_specifics_available.
	* tree.c (reset_type_lang_specific, reset_decl_lang_specific): Clear
	(lang_specifics_available): New.
	(free_lang_specifics): Set lang_specifics_available to false.
	* tree.h (lang_specifics_available): New.

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

	* decl2.c (cxx_callgraph_analyze_expr): Assert lang_specifics_available.

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: langhook.patch
Type: text/x-diff
Size: 2654 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090112/d1898b1f/attachment.bin>

More information about the Gcc-patches mailing list