[lto][patch] Don't write DECL_CONTEXT for CONST_DECL

Rafael Espindola espindola@google.com
Thu Jan 22 20:46:00 GMT 2009

Constants are constants. The context is not relevant.

No regressions on the testsuite.

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

	* lto-function-in.c (input_const_decl): Set context to NULL_TREE.
	* lto-function-out.c (output_const_decl): Assert that context is
	* tree.c (reset_decl_lang_specific): Set DECL_CONTEXT of CONST_DECL to

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: const.patch
Type: text/x-diff
Size: 1639 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090122/411cd190/attachment.bin>

More information about the Gcc-patches mailing list