From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28799 invoked by alias); 7 Feb 2011 12:20:08 -0000 Received: (qmail 28655 invoked by uid 22791); 7 Feb 2011 12:20:00 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BF X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Feb 2011 12:19:55 +0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/47630] New: [4.6 regression] ICE in queue_insn, at haifa-sched.c:1322 compiling 64-bit libjava/java/lang/natString.cc X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 07 Feb 2011 12:25:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00847.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: ro@gcc.gnu.org CC: aoliva@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 , line=1322, function=0x10bbadf0 ) 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