[lto][patch] Last of the "don't write DECL_CONTEXT" series.

Rafael Espindola espindola@google.com
Wed Jan 28 13:32:00 GMT 2009


With this patch we only write the context of FIELD_DECL and they are
not a problem for the moment.

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

	* lto-function-in.c (input_local_var_decl): Set DECL_CONTEXT to
	fn->decl.
	* lto-function-out.c (output_local_var_decl): Add the FN argument.
	Assert DECL_CONTEXT is fn.
	(output_local_decl): Add the FN argument. Pass it to
	output_local_var_decl.
	(output_local_vars): Pass fn->decl to output_local_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: context.patch
Type: text/x-diff
Size: 2725 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090128/84fff60e/attachment.bin>


More information about the Gcc-patches mailing list