public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/48203] New: ICE in dwarf2out.c while building eglibc.
@ 2011-03-19 15:00 ramana at gcc dot gnu.org
  2011-03-19 15:02 ` [Bug debug/48203] " ramana at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-03-19 15:00 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE in dwarf2out.c while building eglibc.
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ramana@gcc.gnu.org


With this reduced testcase (min.i) and the original test.i cleaned from
ld-collate.c,  trunk ICE's building eglibc trunk. 


GCC was configured as --with-cpu=cortex-a9 --with-mode=thumb
--with-float=softfp --with-fpu=vfpv3-d16 

Compiling command line options are -O2 -g :

Here's a debug backtrace. 

(gdb)bt
#0  fancy_abort (file=0x116d200
"/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c", line=13885,
function=0x11741c0 "mem_loc_descriptor") at /home/ramana/cross-build/src/trun\
k/gcc/diagnostic.c:892
#1  0x000000000069c359 in mem_loc_descriptor (rtl=0x7ffff7355c70, mode=SImode,
initialized=VAR_INIT_STATUS_INITIALIZED) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:1\
3885
#2  0x000000000069c4f0 in mem_loc_descriptor (rtl=0x7ffff7246d68, mode=SImode,
initialized=VAR_INIT_STATUS_INITIALIZED) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:1\
3913
#3  0x000000000069dd2f in loc_descriptor (rtl=0x7ffff7246d50, mode=SImode,
initialized=VAR_INIT_STATUS_INITIALIZED) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:14562
#4  0x000000000069de43 in loc_descriptor (rtl=0x7ffff7247280, mode=SImode,
initialized=VAR_INIT_STATUS_INITIALIZED) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:14590
#5  0x000000000069ebb4 in dw_loc_list_1 (loc=0x7ffff746de60,
varloc=0x7ffff7247280, want_address=2, initialized=VAR_INIT_STATUS_INITIALIZED)
at /home/ramana/cross-build/src/tr\
unk/gcc/dwarf2out.c:14861
#6  0x000000000069f43c in dw_loc_list (loc_list=0x7ffff7246f48,
decl=0x7ffff746de60, want_address=2) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:15117
#7  0x00000000006a06b2 in loc_list_from_tree (loc=0x7ffff746de60,
want_address=2) at /home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:15469
#8  0x00000000006a6c26 in add_location_or_const_value_attribute
(die=0x7ffff723b2d0, decl=0x7ffff746de60, attr=DW_AT_location) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2\
out.c:16954
#9  0x00000000006b0973 in gen_variable_die (decl=0x7ffff746de60, origin=0x0,
context_die=0x7ffff723bd20) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:19831
#10 0x00000000006b6e21 in gen_decl_die (decl=0x7ffff746de60, origin=0x0,
context_die=0x7ffff723bd20) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:21317
#11 0x00000000006b4eab in process_scope_var (stmt=0x7ffff74b1000,
decl=0x7ffff746de60, origin=0x0, context_die=0x7ffff723bd20) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2\
out.c:20864
#12 0x00000000006b4f33 in decls_for_scope (stmt=0x7ffff74b1000,
context_die=0x7ffff723bd20, depth=0) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:20886
#13 0x00000000006af0d7 in gen_subprogram_die (decl=0x7ffff74b0000,
context_die=0x7ffff7560320) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:19457
#14 0x00000000006b6aa9 in gen_decl_die (decl=0x7ffff74b0000, origin=0x0,
context_die=0x7ffff7560320) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:21250
#15 0x00000000006b7ad3 in dwarf2out_decl (decl=0x7ffff74b0000) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:21624
#16 0x00000000006b7aea in dwarf2out_function_decl (decl=0x7ffff74b0000) at
/home/ramana/cross-build/src/trunk/gcc/dwarf2out.c:21632
#17 0x0000000000728fc0 in rest_of_handle_final () at
/home/ramana/cross-build/src/trunk/gcc/final.c:4280
#18 0x00000000009041f1 in execute_one_pass (pass=0x16dc860) at
/home/ramana/cross-build/src/trunk/gcc/passes.c:1556
#19 0x00000000009045b8 in execute_pass_list (pass=0x16dc860) at
/home/ramana/cross-build/src/trunk/gcc/passes.c:1611
#20 0x00000000009045d6 in execute_pass_list (pass=0x16dd220) at
/home/ramana/cross-build/src/trunk/gcc/passes.c:1612
#21 0x00000000009045d6 in execute_pass_list (pass=0x16dd1c0) at
/home/ramana/cross-build/src/trunk/gcc/passes.c:1612
#22 0x0000000000a89dcd in tree_rest_of_compilation (fndecl=0x7ffff74b0000) at
/home/ramana/cross-build/src/trunk/gcc/tree-optimize.c:422
#23 0x0000000000d018e8 in cgraph_expand_function (node=0x7ffff74ac580) at
/home/ramana/cross-build/src/trunk/gcc/cgraphunit.c:1576
#24 0x0000000000d01a98 in cgraph_expand_all_functions () at
/home/ramana/cross-build/src/trunk/gcc/cgraphunit.c:1635
#25 0x0000000000d0211c in cgraph_optimize () at
/home/ramana/cross-build/src/trunk/gcc/cgraphunit.c:1899
#26 0x0000000000cff4ee in cgraph_finalize_compilation_unit () at
/home/ramana/cross-build/src/trunk/gcc/cgraphunit.c:1096
#27 0x00000000004beb81 in c_write_global_declarations () at
/home/ramana/cross-build/src/trunk/gcc/c-decl.c:9871
#28 0x00000000009fb08a in compile_file () at
/home/ramana/cross-build/src/trunk/gcc/toplev.c:591
#29 0x00000000009fd388 in do_compile () at
/home/ramana/cross-build/src/trunk/gcc/toplev.c:1900
#30 0x00000000009fd4b3 in toplev_main (argc=4, argv=0x7fffffffe728) at
/home/ramana/cross-build/src/trunk/gcc/toplev.c:1963
#31 0x00000000005958df in main (argc=4, argv=0x7fffffffe728) at
/home/ramana/cross-build/src/trunk/gcc/main.c:36


(gdb) p rtl
$4 = (rtx) 0x7ffff7246d50
(gdb) pr
(plus:SI (entry_value:SI (mem/f/c/i:SI (plus:SI (reg/f:SI 26 afp)
                (const_int 4 [0x4])) [3 result+0 S4 A32]))
    (const_int 12 [0xc]))


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-06-01  6:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-19 15:00 [Bug debug/48203] New: ICE in dwarf2out.c while building eglibc ramana at gcc dot gnu.org
2011-03-19 15:02 ` [Bug debug/48203] " ramana at gcc dot gnu.org
2011-03-19 15:06 ` ramana at gcc dot gnu.org
2011-03-19 15:17 ` ramana at gcc dot gnu.org
2011-03-19 16:51 ` ramana at gcc dot gnu.org
2011-03-19 18:37 ` jakub at gcc dot gnu.org
2011-03-19 19:21 ` ramana at gcc dot gnu.org
2011-03-19 19:25 ` ramana at gcc dot gnu.org
2011-03-19 19:57 ` jakub at gcc dot gnu.org
2011-03-19 20:02 ` ramana at gcc dot gnu.org
2011-03-19 20:06 ` jakub at gcc dot gnu.org
2011-03-19 23:31 ` ramana at gcc dot gnu.org
2011-03-20  9:27 ` ramana at gcc dot gnu.org
2011-03-29  0:05 ` jakub at gcc dot gnu.org
2011-05-31 22:44 ` ramana at gcc dot gnu.org
2011-06-01  6:32 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).