From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17615 invoked by alias); 26 Apr 2011 08:14:50 -0000 Received: (qmail 17605 invoked by uid 22791); 26 Apr 2011 08:14:49 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_ZJ 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, 26 Apr 2011 08:14:35 +0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/48757] internal compiler error: in compensate_edge, at reg-stack.c:2788 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Target Status Last reconfirmed CC Ever Confirmed Known to fail 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, 26 Apr 2011 08:14: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-04/txt/msg02566.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48757 Uros Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |i686-pc-linux-gnu Status|UNCONFIRMED |NEW Last reconfirmed| |2011.04.26 08:13:21 CC| |ubizjak at gmail dot com Ever Confirmed|0 |1 Known to fail| |4.5.3, 4.6.1, 4.7.0 --- Comment #1 from Uros Bizjak 2011-04-26 08:13:21 UTC --- Confirmed with current mainline (-O2 -m32), we ICE in reg-stack.c, compensate_edge: /* We don't support abnormal edges. Global takes care to avoid any live register across them, so we should never have to insert instructions on such edges. */ gcc_assert (! (e->flags & EDGE_ABNORMAL)); Where _.f.210r.stack shows that we want to compensate abnormal edges from bb 8: Edge 8->13: no changes needed Edge 8->9: correcting stack to empty Edge 8->12: correcting stack to empty Edge 8->11: correcting stack to empty ... ;; End of basic block 8 -> ( 13 9 12 11) ;; lr out 7 [sp] 10 [st(2)] 11 [st(3)] ;; live out 7 [sp] 10 [st(2)] 11 [st(3)] ;; Succ edge 13 [25.0%] (ab,loop_exit) ;; Succ edge 9 [25.0%] (ab,loop_exit) ;; Succ edge 12 [25.0%] (ab,loop_exit) ;; Succ edge 11 [25.0%] (ab) Apparently, global does not work as expected.