While compiling snow.c from ffmpeg loc_descriptor_from_tree_1 segfaults. Here is the stack trace: #0 fancy_abort (file=0x1048ec30 "/home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c", line=9190, function=0x105e5e98 "loc_descriptor_from_tree_1") at /home/jim/cvs/gcc.head/gcc/gcc/diagnostic.c:556 #1 0x1018ff14 in loc_descriptor_from_tree_1 (loc=0xa, want_address=0) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:9190 #2 0x1018f964 in loc_descriptor_from_tree_1 (loc=0x304fd988, want_address=0) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:9099 #3 0x1018f964 in loc_descriptor_from_tree_1 (loc=0x304fd9b0, want_address=2) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:9099 #4 0x10197168 in add_bound_info (subrange_die=0x3063bb70, bound_attr=DW_AT_upper_bound, bound=0x304fd9b0) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:9223 #5 0x1019b0dc in gen_array_type_die (type=0x304ff000, context_die=0x3063b120) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:10271 #6 0x10195394 in gen_type_die (type=0x304ff000, context_die=0x3063b120) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:12101 #7 0x10193b90 in gen_decl_die (decl=0x304ff100, context_die=0x3063b120) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:12643 #8 0x10199ff4 in decls_for_scope (stmt=0x3050c690, context_die=0x3063b120, depth=0) at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:12330 #9 0x10198288 in gen_subprogram_die (decl=0x304f9200, context_die=Variable "context_die" is not available. at /home/jim/cvs/gcc.head/gcc/gcc/dwarf2out.c:11400 #10 0x1037b9bc in rest_of_compilation () at /home/jim/cvs/gcc.head/gcc/gcc/passes.c:340 #11 0x10089694 in execute_pass_list (pass=0x105ec0c8) at /home/jim/cvs/gcc.head/gcc/gcc/tree-optimize.c:503 #12 0x100899f8 in tree_rest_of_compilation (fndecl=0x304f9200) at /home/jim/cvs/gcc.head/gcc/gcc/tree-optimize.c:635 #13 0x1001a9c0 in c_expand_body (fndecl=0x304f9200) at /home/jim/cvs/gcc.head/gcc/gcc/c-decl.c:6371 #14 0x103ab764 in cgraph_expand_function (node=0x30517100) at /home/jim/cvs/gcc.head/gcc/gcc/cgraphunit.c:1045 #15 0x103afe90 in cgraph_optimize () at /home/jim/cvs/gcc.head/gcc/gcc/cgraphunit.c:2726 #16 0x1001d2c8 in c_write_global_declarations () at /home/jim/cvs/gcc.head/gcc/gcc/c-decl.c:7349 #17 0x1034b4fc in toplev_main (argc=Variable "argc" is not available. ) at /home/jim/cvs/gcc.head/gcc/gcc/toplev.c:999 #18 0x1006710c in main (argc=Variable "argc" is not available. ) at /home/jim/cvs/gcc.head/gcc/gcc/main.c:35
-- Summary: ICE at loc_descriptor_from_tree_1 in dwarf2out.c Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: phython at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: ppc-linux GCC host triplet: ppc-linux GCC target triplet: ppc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18067