From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27412 invoked by alias); 4 Feb 2008 19:59:07 -0000 Received: (qmail 27392 invoked by uid 22791); 4 Feb 2008 19:59:06 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 04 Feb 2008 19:58:38 +0000 Received: by an-out-0708.google.com with SMTP id b36so546525ana.111 for ; Mon, 04 Feb 2008 11:58:36 -0800 (PST) Received: by 10.100.34.16 with SMTP id h16mr60924anh.114.1202155116248; Mon, 04 Feb 2008 11:58:36 -0800 (PST) Received: from lucon.org ( [76.126.237.145]) by mx.google.com with ESMTPS id 20sm1350257agd.11.2008.02.04.11.58.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Feb 2008 11:58:33 -0800 (PST) Received: by lucon.org (Postfix, from userid 500) id 1474EF828E; Mon, 4 Feb 2008 11:58:31 -0800 (PST) Date: Mon, 04 Feb 2008 19:59:00 -0000 To: Kai Tietz , GDB Cc: Binutils , Brian Dessent , Kai Tietz , Nick Clifton , NightStrike Subject: Re: PATCH: PR 5715: Binutils is broken on 32bit mingw host for 64bit target Message-ID: <20080204195831.GA12026@lucon.org> References: <20080204153803.GA11121@lucon.org> <20080204193935.GA11945@lucon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080204193935.GA11945@lucon.org> User-Agent: Mutt/1.5.17 (2007-11-01) From: "H.J. Lu" Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00011.txt.bz2 On Mon, Feb 04, 2008 at 11:39:35AM -0800, H.J. Lu wrote: > I am applying this patch as an obvious fix. I will check if gdb needs > update. > > > H.J. > --- > bfd/ > > 2008-02-04 Kai Tietz > H.J. Lu > > PR 5715 > * warning.m4: Enable -Wno-format by default when using gcc on > mingw. > * configure: Regenerated. > gdb is ok. I missed gprof. I am checking it in now. H.J. --- 2008-02-04 H.J. Lu PR 5715 * configure: Regenerated. --- gprof/configure.ll 2007-10-26 09:49:55.000000000 -0700 +++ gprof/configure 2008-02-04 11:56:33.000000000 -0800 @@ -11222,6 +11222,16 @@ echo "$as_me: error: bad value ${enablev esac fi; +# Enable -Wno-format by default when using gcc on mingw +case "${host}" in + *-*-mingw32*) + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" + fi + ;; + *) ;; +esac + # Enable -Werror by default when using gcc if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then ERROR_ON_WARNING=yes