From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31050 invoked by alias); 18 Jan 2011 13:43:35 -0000 Received: (qmail 31040 invoked by uid 22791); 18 Jan 2011 13:43:34 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 18 Jan 2011 13:43:30 +0000 From: "law at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/46878] V850 ICE in in maybe_add_or_update_dep_1, at sched-deps.c:854 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: law at redhat dot com 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: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 18 Jan 2011 13:50: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-01/txt/msg01782.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46878 Jeffrey A. Law changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at redhat dot com --- Comment #6 from Jeffrey A. Law 2011-01-18 13:43:10 UTC --- Why is the comparison marked with SCHED_GROUP_P? I think that's your underlying problem as SCHED_GROUP_P indicates the current insn must be scheduled with the previous insn. But there is no previous insn in the block. (gdb) p debug_bb_n (4) ;; basic block 4, loop depth 0, count 0 ;; prev block 3, next block 5 ;; pred: 2 [50.0%] ;; succ: 7 [78.4%] 5 [21.6%] (fallthru) ;; bb 4 artificial_defs: { } ;; bb 4 artificial_uses: { u17(3){ }u18(29){ }u19(34){ }u20(35){ }} ;; lr in 3 [sp] 29 [r29] 34 [.fp] 35 [.ap] 43 47 48 ;; lr use 3 [sp] 29 [r29] 34 [.fp] 35 [.ap] 43 47 ;; lr def 42 44 ;; live in 3 [sp] 29 [r29] 34 [.fp] 35 [.ap] 43 47 48 ;; live gen 42 44 ;; live kill (code_label 20 62 21 4 2 "" [1 uses]) (note 21 20 22 4 [bb 4] NOTE_INSN_BASIC_BLOCK) (note 22 21 23 4 NOTE_INSN_DELETED) (insn/s 23 22 60 4 (set (reg/v:SI 44 [ c ]) (ne:SI (cc0) (const_int 0 [0]))) j.c:10 40 {*setcc} (nil)) (note 60 23 59 4 NOTE_INSN_DELETED) (insn 59 60 30 4 (set (reg/v/f:SI 42 [ tmpp ]) (if_then_else:SI (ne (reg:SI 43 [ D.1959 ]) (const_int 1 [0x1])) (reg/v/f:SI 47 [ op ]) (const_int 0 [0]))) j.c:15 46 {*movsicc_normal} (expr_list:REG_DEAD (reg/v/f:SI 47 [ op ]) (expr_list:REG_DEAD (reg:SI 43 [ D.1959 ]) (nil)))) (insn 30 59 31 4 (set (cc0) (compare (reg/v/f:SI 42 [ tmpp ]) (const_int 0 [0]))) j.c:16 16 {cmpsi_insn} (expr_list:REG_DEAD (reg/v/f:SI 42 [ tmpp ]) (nil))) (jump_insn 31 30 32 4 (set (pc) (if_then_else (ne (cc0) (const_int 0 [0])) (label_ref:SI 50) (pc))) j.c:16 53 {*branch_normal} (expr_list:REG_BR_PROB (const_int 7837 [0x1e9d]) (nil)) -> 50) ;; lr out 3 [sp] 29 [r29] 34 [.fp] 35 [.ap] 44 48 ;; live out 3 [sp] 29 [r29] 34 [.fp] 35 [.ap] 44 48 Note the /s on insn 23. That's SCHED_GROUP_P.