This is the mail archive of the gcc-bugs@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]

dwarf2 nested function abort


The following ia64 glibc test case aborts with -O -g.

The problem is that the die for try.0 is put onto the
limbo list and never taken off.

There's commentary in dwarf2out_decl (frame 3) saying 

      /* If we're a nested function, initially use a parent of NULL; if we're
         a plain function, this will be fixed up in decls_for_scope.  If
         we're a method, it will be ignored, since we already have a DIE.  */

but, in this case decls_for_scope has already run (frame 6)

#0  new_die (tag_value=DW_TAG_subprogram, parent_die=0x0)
    at ../../../egcs-std/gcc/dwarf2out.c:4089
#1  0x120115680 in gen_subprogram_die (decl=0x200003e6d00, context_die=0x0)
    at ../../../egcs-std/gcc/dwarf2out.c:8228
#2  0x1201178bc in gen_decl_die (decl=0x200003e6d00, context_die=0x0)
    at ../../../egcs-std/gcc/dwarf2out.c:9355
#3  0x120117e04 in dwarf2out_decl (decl=0x200003e6d00)
    at ../../../egcs-std/gcc/dwarf2out.c:9576
#4  0x1201152e8 in gen_abstract_function (decl=0x200003e6d00)
    at ../../../egcs-std/gcc/dwarf2out.c:8119
#5  0x120117844 in gen_decl_die (decl=0x200003e6d00, context_die=0x12052c930)
    at ../../../egcs-std/gcc/dwarf2out.c:9334
#6  0x1201176a8 in decls_for_scope (stmt=0x200003f5ac0, 
    context_die=0x12052c930, depth=1) at ../../../egcs-std/gcc/dwarf2out.c:9268
#7  0x120117534 in gen_block_die (stmt=0x200003f5ac0, context_die=0x12052c930, 
    depth=1) at ../../../egcs-std/gcc/dwarf2out.c:9230
#8  0x1201176d8 in decls_for_scope (stmt=0x200003f5b00, 
    context_die=0x12052c930, depth=0) at ../../../egcs-std/gcc/dwarf2out.c:9276
#9  0x120115ac8 in gen_subprogram_die (decl=0x2000039f500, 
    context_die=0x120495ed0) at ../../../egcs-std/gcc/dwarf2out.c:8392
#10 0x1201178bc in gen_decl_die (decl=0x2000039f500, context_die=0x120495ed0)
    at ../../../egcs-std/gcc/dwarf2out.c:9355


r~

z.c.gz


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