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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.01.18 17:38:15
                 CC|                            |jakub at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-18 
17:38:15 UTC ---
When dwarf2out_abstract_function is called on MAIN__, it doesn't have
DECL_INITIAL set when in lto1 (compared to f951), the BLOCK tree is simply not
present, which both causes incomplete debug information and for Fortran COMMON
blocks ICEs, as it relies on those to be actually present.  P4 as it only
affects Fortran, but if -flto -g is ever meant to be usable, the BLOCK trees
need to be streamed out and preserved.  It seems output_function calls:
  /* Output DECL_INITIAL for the function, which contains the tree of
     lexical scopes.  */
  lto_output_tree (ob, DECL_INITIAL (function), true);
but for inlines output_function isn't called.

Reply via email to