From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27048 invoked by alias); 8 May 2011 22:01:51 -0000 Received: (qmail 27003 invoked by uid 22791); 8 May 2011 22:01:46 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CB 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; Sun, 08 May 2011 22:01:31 +0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/48932] New: ICE in check_dep, at sched-deps.c:4097 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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: Sun, 08 May 2011 22:01: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-05/txt/msg00675.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48932 Summary: ICE in check_dep, at sched-deps.c:4097 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: danglin@gcc.gnu.org Host: hppa2.0w-hp-hpux11* Target: hppa2.0w-hp-hpux11* Build: hppa2.0w-hp-hpux11* Gcc-4.7 bootstrap fails in stage1 with both gcc-4.3.5 and gcc-4.4.4 as the bootstrap compiler when STAGE1_CFLAGS="-g -O1". This occurs configuring libgcc: checking for suffix of object files... configure: error: in `/xxx/gnu/gcc/objdir /hppa2.0w-hp-hpux11.00/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } The problem occurs in the first call to check_dep: Breakpoint 1, check_dep (dep=0x980800, relaxed_p=0 '\000') at ../../gcc/gcc/sched-deps.c:4097 4097 gcc_assert (ds == -1); (gdb) bt #0 check_dep (dep=0x980800, relaxed_p=0 '\000') at ../../gcc/gcc/sched-deps.c:4097 #1 0x007c8aa0 in add_or_update_dep_1 (new_dep=0x7eff0f78, resolved_p=0 '\000', mem1=0x0, mem2=0x0) at ../../gcc/gcc/sched-deps.c:1125 #2 0x007c9098 in maybe_add_or_update_dep_1 (dep=0x980800, resolved_p=0 '\000', mem1=0x0, mem2=0x0) at ../../gcc/gcc/sched-deps.c:858 #3 0x007c9114 in haifa_note_dep (elem=0x7af877d0, ds=0) at ../../gcc/gcc/sched-deps.c:1676 #4 0x007c2ab8 in note_dep (e=0x980800, ds=0) at ../../gcc/gcc/sched-deps.c:1711 #5 0x007c33a8 in add_dependence (insn=0x980800, elem=0x0, dep_type=REG_DEP_TRUE) at ../../gcc/gcc/sched-deps.c:3817 #6 0x007c4a70 in add_dependence_list (insn=0x7af87848, list=0x7afaf7c0, uncond=0, dep_type=REG_DEP_TRUE) at ../../gcc/gcc/sched-deps.c:1394 #7 0x007ca3b0 in sched_analyze_insn (deps=0x7eff0bcc, x=0x400f16c0, insn=0x7af87848) at ../../gcc/gcc/sched-deps.c:2824 #8 0x007cb428 in deps_analyze_insn (deps=0x7eff0bcc, insn=0x7af87848) at ../../gcc/gcc/sched-deps.c:3249 #9 0x007cbbc0 in sched_analyze (deps=0x7eff0bcc, head=0x7af87848, tail=0x7af87848) at ../../gcc/gcc/sched-deps.c:3397 #10 0x005a18cc in sched_rgn_compute_dependencies (rgn=9963520) at ../../gcc/gcc/sched-rgn.c:2715 #11 0x005a610c in schedule_insns () at ../../gcc/gcc/sched-rgn.c:2927 #12 0x005a6800 in rest_of_handle_sched () at ../../gcc/gcc/sched-rgn.c:3501 #13 0x0032130c in execute_one_pass (pass=0x400253c8) at ../../gcc/gcc/passes.c:1556 #14 0x003215c4 in execute_pass_list (pass=0x400253c8) at ../../gcc/gcc/passes.c:1610 #15 0x003215d8 in execute_pass_list (pass=0x4001b988) at ../../gcc/gcc/passes.c:1611 #16 0x006015ac in tree_rest_of_compilation (fndecl=0x7afa8900) at ../../gcc/gcc/tree-optimize.c:417 #17 0x00419088 in cgraph_expand_function (node=0x7afb7000) at ../../gcc/gcc/cgraphunit.c:1625 #18 0x0041bb4c in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1684 #19 0x0041bd74 in cgraph_finalize_compilation_unit () at ../../gcc/gcc/cgraphunit.c:1121 #20 0x0004e858 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:9844 #21 0x00350b34 in toplev_main (argc=0, argv=0x0) at ../../gcc/gcc/toplev.c:586 #22 0x001028fc in main (argc=9963520, argv=0x0) at ../../gcc/gcc/main.c:36 add_or_update_dep_1 appears to be miscompiled: 0x007c8a6c : cmpib,<< 3,r20,0x7c8a7c 0x007c8a70 : ldil L%980800,r26 => 0x007c8a74 : cmpb,<>,n r19,ret0,0x7c8a90 0x007c8a78 : ldil L%980800,r26 0x007c8a7c : ldo b0(r26),r26 0x007c8a80 : ldi 462,r25 0x007c8a84 : ldil L%980800,r24 0x007c8a88 : b,l 0x7c89f0 ,rp 0x007c8a8c : ldo 2e4(r24),r24 0x007c8a90 : cmpiclr,= 0,r24,r25 0x007c8a94 : ldi 1,r25 0x007c8a98 : b,l 0x7c33c0 ,rp 0x007c8a9c : nop It appears the cmpib instruction needs nullification, or the ldil L%980800,r26 instruction has been incorrectly placed in the delay slot of the branch.