From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22036 invoked by alias); 3 Dec 2010 21:05:57 -0000 Received: (qmail 22028 invoked by uid 22791); 3 Dec 2010 21:05:56 -0000 X-SWARE-Spam-Status: No, hits=-2.8 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; Fri, 03 Dec 2010 21:05:53 +0000 From: "steven at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/46793] -fschedule-insns causes ICE in compiling zlib/trees.c 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: steven at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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: Fri, 03 Dec 2010 21:05: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: 2010-12/txt/msg00365.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46793 --- Comment #3 from Steven Bosscher 2010-12-03 21:05:46 UTC --- The bug is in the architecture, not in the scheduling pass. You cannot expect scheduling before register allocation to always yield code that you can register-allocate with just 3 general registers available. Enabling it only for AMD64 is not a work-around, it's the only proper thing to do if you want to enable the pre-RA scheduling pass by default. And there is still -fsched-pressure that you could try. But I doubt you will get a patch approved to enable scheduling for 32-bits ix86. The failure you are seeing can be triggered quite easily even _without_ scheduling enabled. Just search bugzilla for all the "unable to find spill register" bugs on i386, this one is far from unique.