[lto][patch] Fix handling of DECL_CONTEXT of RESULT_DECLs. Don't write them to disk

Rafael Espindola espindola@google.com
Thu Jan 22 12:35:00 GMT 2009


Bootstrapped and all tests are OK.

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

	* lto-function-in.c (input_tree_with_context): New.
	(input_tree_operand): Change signature. Pass fn to input_result_decl.
	(input_function_decl): Use input_tree_with_context for the result.
	(input_result_decl): Change signature. Don't read the context.
	(input_tree): Implement with input_tree_with_context.
	* lto-function-out.c (output_tree_with_context): New.
	(output_function_decl): Use output_tree_with_context for the context.
	(output_result_decl): Change signature. Assert the the context is
	correct. Don't write it.
	(output_tree): Implement with output_tree_with_context.
	* omp-low.c (create_omp_child_function): Set DECL_CONTEXT of the
	RESULT_DECL.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047



More information about the Gcc-patches mailing list