http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47630
Summary: [4.6 regression] ICE in queue_insn, at haifa-sched.c:1322 compiling 64-bit libjava/java/lang/natString.cc Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: r...@gcc.gnu.org CC: aol...@gcc.gnu.org Host: mips-sgi-irix6.5 Target: mips-sgi-irix6.5 Build: mips-sgi-irix6.5 Created attachment 23263 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23263 preporcessed natString.cc For more than a week, mainline fails to bootstrap on IRIX 6.5: /vol/gcc/src/hg/trunk/local/libjava/java/lang/natString.cc: In member function 'jint java::lang::String::indexOf(jstring, jint)': /vol/gcc/src/hg/trunk/local/libjava/java/lang/natString.cc:832:1: internal compiler error: in queue_insn, at haifa-sched.c:1322 This happens both with the old and the current version of the Alexandre's patch to haifa-sched.c. I find the following cc1plus stacktrace: #0 fancy_abort (file=0x10bba438 <error reading variable>, line=1322, function=0x10bbadf0 <error reading variable>) at /vol/gcc/src/hg/trunk/local/gcc/diagnostic.c:893 #1 0x105bc700 in queue_insn (next=0x4acdf40, delay=1) at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:1322 #2 change_queue_index (next=0x4acdf40, delay=1) at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:3968 #3 0x105bffb0 in fix_tick_ready (next=0x4acdf40) at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:3936 #4 try_ready (next=0x4acdf40) at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:3891 #5 0x108c4bd0 in init_ready_list () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:2119 #6 0x105c37a4 in schedule_block (target_bb=0x7ffb7a64) at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:2877 #7 0x108c8f44 in schedule_region () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3000 #8 schedule_insns () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3321 #9 schedule_insns () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3300 #10 0x108c929c in rest_of_handle_sched () at /vol/gcc/src/hg/trunk/local/gcc/sched-rgn.c:3511 #11 0x106bf144 in execute_one_pass (pass=0x10cba0e0) at /vol/gcc/src/hg/trunk/local/gcc/passes.c:1561 #12 0x106bf500 in execute_pass_list (pass=0x10cba0e0) at /vol/gcc/src/hg/trunk/local/gcc/passes.c:1616 #13 0x106bf51c in execute_pass_list (pass=0x10cb90d8) at /vol/gcc/src/hg/trunk/local/gcc/passes.c:1617 #14 0x108e57a8 in tree_rest_of_compilation (fndecl=0x41a6b80) at /vol/gcc/src/hg/trunk/local/gcc/tree-optimize.c:422 #15 0x1080fb7c in cgraph_expand_function (node=0x4a30740) at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1563 #16 0x10812b60 in cgraph_expand_all_functions () at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1622 #17 cgraph_optimize () at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1882 #18 0x10813250 in cgraph_finalize_compilation_unit () at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1083 #19 0x1015ad50 in cp_write_global_declarations () at /vol/gcc/src/hg/trunk/local/gcc/cp/decl2.c:3977 #20 0x105acd34 in compile_file (argc=10, argv=0x7ffb7f04) at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:591 #21 do_compile (argc=10, argv=0x7ffb7f04) at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1874 #22 toplev_main (argc=10, argv=0x7ffb7f04) at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1937 #23 0x10082620 in __start () (gdb) up #1 0x105bc700 in queue_insn (next=0x4acdf40, delay=1) at /vol/gcc/src/hg/trunk/local/gcc/haifa-sched.c:1322 (gdb) p insn $1 = (rtx) 0x4acdf40 (gdb) pr (debug_insn 72 71 73 7 (var_location:SI j (subreg:SI (reg/v:DI 213 [ j+-4 ]) 4)) -1 (nil)) The problem can be reproduced with included natString.ii and $ cc1plus -fpreprocessed natString.ii -mabi=64 -mno-synci -g -O2 -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers