------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-01-17 
12:54 -------
It's

2005-01-03  Daniel Berlin  <[EMAIL PROTECTED]>

        Fix PR debug/17924
        Fix PR debug/19191
        * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
        is a decl.
        * gimple-low.c (mark_blocks_with_used_vars): New function.
        (mark_blocks_with_used_subblocks): Ditto.
        (mark_used_blocks): Ditto.
        (pass_mark_used_blocks): New pass.
        * tree-inline.c: Include debug.h.
        (expand_call_inline): Call outlining_inline_function here.
        * tree-optimize.c (init_tree_optimization_passes): Add
        pass_mark_used_blocks. 
        * tree-pass.h (pass_mark_used_blocks): New.
        * Makefile.in (tree-inline.o): Add debug.h dependency.

The DBX back-end is now asked to output debug info for the inlined instance of
the nested function r in

main()
{
#ifndef NO_TRAMPOLINES
  void p(void ((*f) (void ())))
    {
      void r()
        {
          foo ();
        }

      f(r);
    }

  void q(void ((*f)()))
    {
      f();
    }

  p(q);
#endif
  exit(0);
}

which is created when p is inlined.  I think it doesn't support that.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |debug


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

Reply via email to