This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: PATCH: PR 5715: Binutils is broken on 32bit mingw host for 64bit target
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Kai Tietz <Kai dot Tietz at onevision dot com>, GDB <gdb at sources dot redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>, Brian Dessent <brian at dessent dot net>, Kai Tietz <ktietz70 at googlemail dot com>, Nick Clifton <nickc at redhat dot com>, NightStrike <nightstrike at gmail dot com>
- Date: Mon, 4 Feb 2008 11:58:31 -0800
- Subject: Re: PATCH: PR 5715: Binutils is broken on 32bit mingw host for 64bit target
- References: <20080204153803.GA11121@lucon.org> <OF87A2F223.26E4FB87-ONC12573E5.0056CF2A-C12573E5.00570F1C@onevision.de> <20080204193935.GA11945@lucon.org>
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 <kai.tietz@onevision.com>
> H.J. Lu <hongjiu.lu@intel.com>
>
> 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 <hongjiu.lu@intel.com>
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