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]

Re: [LTO][PATCH] Fix ICE in output_tree.


Diego,

   This is another patch and it uses walk_tree().  The problem is that
is not very efficient in terms of stack usage as tail recursion is not
possible with a chain of trees.  The call-back has to call walk_tree
again to handle cases it does not.  It is certainly shorter than the
first one though.

-Doug

2008-11-18  Doug Kwan  <dougkwan@google.com>

	* lto.c (LTO_FIXUP_SUBTREE): New macro.
	(no_fixup_p, lto_fixup_common, lto_fixup_decl_minimal,
	lto_fixup_decl_common, lto_fixup_decl_with_vis,
	lto_fixup_decl_non_common, lto_fixup_field_decl, lto_fixup_type,
	lto_fixup_binfo): New functions.
 	(lto_fixup_tree): Handle missing cases in walk_tree.

Attachment: patch.txt
Description: Text document


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