From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8026 invoked by alias); 2 Jun 2012 12:08:14 -0000 Received: (qmail 8009 invoked by uid 22791); 2 Jun 2012 12:08:12 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Sat, 02 Jun 2012 12:08:00 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/53555] [4.8 Regression] Bootstrap failure Date: Sat, 02 Jun 2012 12:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 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 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: 2012-06/txt/msg00100.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53555 --- Comment #4 from H.J. Lu 2012-06-02 12:07:59 UTC --- (In reply to comment #3) > Hmm, it seems it's not quite correct to check ix86_tune, proper way is to use > ix86_arch here. Following change fixes he bootstrap > > diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c > index c6c2c5e..a272411 100644 > --- a/gcc/config/i386/i386.c > +++ b/gcc/config/i386/i386.c > @@ -23881,7 +23881,7 @@ ix86_sched_reorder(FILE *dump, int sched_verbose, rtx > *ready, int *pn_ready, > issue_rate = ix86_issue_rate(); > > /* Do reodering for Atom only. */ > - if (ix86_tune != PROCESSOR_ATOM) > + if (ix86_arch != PROCESSOR_ATOM) > return issue_rate; > /* Nothing to do if ready list contains only 1 instruction. */ > if (n_ready <= 1) This is the wrong fix. Bootstrap will fail if GCC is configured with --with-arch=atom.