From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32673 invoked by alias); 23 Jan 2011 13:53:38 -0000 Received: (qmail 32661 invoked by uid 22791); 23 Jan 2011 13:53:37 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GC,TW_JC 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, 23 Jan 2011 13:53:23 +0000 From: "mikpe at it dot uu.se" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/47422] New: [4.6 regression] bootstrap failure due to warnings in compare-elim.c X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikpe at it dot uu.se 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, 23 Jan 2011 15:33: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/msg02375.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47422 Summary: [4.6 regression] bootstrap failure due to warnings in compare-elim.c Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: mikpe@it.uu.se Bootstrapping 4.6-20110122 on powerpc64-linux fails with: /mnt/archive/gcc-4.6-20110122/gcc/compare-elim.c: In function 'maybe_select_cc_mode': /mnt/archive/gcc-4.6-20110122/gcc/compare-elim.c:407:58: error: unused parameter 'b' [-Werror=unused-parameter] cc1: all warnings being treated as errors make[3]: *** [compare-elim.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gcj-dbtool.pod jcf-dump.pod jv-convert.pod grmic.pod gcj.pod gc-analyze.pod cpp.pod gfdl.pod gij.pod gcov.pod gfortran.pod fsf-funding.pod gcc.pod make[3]: Leaving directory `/mnt/archive/objdir46/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/mnt/archive/objdir46' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/mnt/archive/objdir46' make: *** [bootstrap] Error 2 The problem is that the rs6000 SELECT_CC_MODE macro ignores its last parameter, so the 'b' parameter to maybe_select_cc_mode is unused, triggering the error. Targets without SELECT_CC_MODE (e.g. m68k) also break, see .