This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lto][patch] Remove vestigial fixup code


We used to read decls and function bodies at the same time. Because of
that, we needed do some fixup to compensate for merges happening when
we already had some references to a decl.

We now read all decls first, so the fixup is no longer necessary. This
patch removes the now vestigial code.

bootstrapped and tested on linux x86-64.

2008-09-29 Rafael Espindola  <espindola@google.com>

	* lto-function-in.c (vec_tree_ptr, lto_fixups): Remove.
	(global_vector_enter): Remove the need_fixups argument.
	(global_vector_fixup): Just update globals_index and free the old node.
	Do nothing else.
	(input_field_decl, input_const_decl, input_function_decl,
	input_var_decl, input_parm_decl, input_result_decl,
	input_type_decl, input_label_decl, input_namespace_decl,
	input_translation_unit_decl, input_binfo, input_type): Update call to
	global_vector_enter.
	(input_tree_operand): Don't assert on TREE_VISITED.
	(input_tree): Don't assert on TREE_VISITED.

Cheers,
-- 
Rafael Avila de Espindola

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]