From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26301 invoked by alias); 9 Jun 2009 15:41:54 -0000 Received: (qmail 26292 invoked by uid 22791); 9 Jun 2009 15:41:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from caip.rutgers.edu (HELO caip.rutgers.edu) (128.6.236.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Jun 2009 15:41:48 +0000 Received: from caipclassic.rutgers.edu (caipclassic.rutgers.edu [128.6.237.54]) by caip.rutgers.edu (Postfix) with ESMTP id 2F72633083B; Tue, 9 Jun 2009 11:41:28 -0400 (EDT) Date: Tue, 09 Jun 2009 15:41:00 -0000 From: "Kaveh R. GHAZI" To: Art Haas cc: gcc@gcc.gnu.org Subject: Re: Bootstrap failures on solaris In-Reply-To: <200906091436.n59EaP8F028765@impdell3.impactweather.local> Message-ID: References: <200906091436.n59EaP8F028765@impdell3.impactweather.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00180.txt.bz2 On Tue, 9 Jun 2009, Art Haas wrote: > > Hi. > > I've had no luck with recent bootstraps on both i386-pc-solaris2.10 and > sparc-sun-solaris2.10. The error messages below are from builds performed > after updating my repo this morning. > > i386-pc-solaris: > > cc1: warnings being treated as errors > /export/home/arth/gnu/gcc.git/gcc/tree-ssa-loop-prefetch.c: In function 'loop_prefetch_arrays': > /export/home/arth/gnu/gcc.git/gcc/tree-ssa-loop-prefetch.c:1589:7: error: format '%ld' expects type 'long int', but argument 5 has type 'long long int' > make[3]: *** [tree-ssa-loop-prefetch.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... The above should be easy to fix using HOST_WIDE_INT_PRINT_DEC instead of "%ld". You'll have to pry apart the format string and insert the macro via compile-time string contatenation. See other uses for examples. --Kaveh