http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46911

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-23 
14:35:27 UTC ---
Created attachment 23443
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23443
prototype patch

Patch also trying to fix PR47799 (but we'll still have multiple copies of
the BLOCK trees).  For better clarity the BLOCK_ABSTRACT_ORIGIN BLOCK
trees should probably be streamed from input/output_function by walking
the functions DECL_INITIAL.  That would make it clear that the BLOCKs
are duplicated in each caller function section (and that we mess up
DECL_INITIAL of the abstract origin function-decls for all but the
last function).

We probably need to output the abstract function and its BLOCK tree to
the global decl&type LTO section, possibly triggered by
debug_hooks->outlining_inline_function.

Reply via email to