This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch bfd]: Add further support for x86_64 mingw
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Kai Tietz <Kai dot Tietz at onevision 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 07:38:03 -0800
- Subject: Re: [patch bfd]: Add further support for x86_64 mingw
- References: <20080204143139.GA10805@lucon.org> <OF36E41DB6.7EFAE04A-ONC12573E5.0052EF87-C12573E5.0053548A@onevision.de>
On Mon, Feb 04, 2008 at 04:10:05PM +0100, Kai Tietz wrote:
> Hi H.J.,
>
> > On Mon, Feb 04, 2008 at 12:02:43PM +0100, Kai Tietz wrote:
> > > Hi H.J.,
> > >
> > > I patched bfd/warning.m4. Could you review it. It should diable the
> > > -Werror option for host mingw.
> > > You need to regenerate the configure scripts, because I have currently
> no
> > > ability to re-generate them.
> > >
> > > ChangeLog
> > >
> > > 2008-02-04 Kai Tietz <kai.tietz@onevision.com>
> > >
> > > * bfd/warning.m4: Disable by default -Werror for mingw.
> > > * bfd/configure: Regenerate.
> > > * gas/configure: Regenerate.
> > > * binutils/configure: Regenerate.
> > > * ld/configure: Regenerate.
> > >
> >
> > Please mention PR 5715 in your ChangeLog.
>
> 2008-02-04 Kai Tietz <kai.tietz@onevision.com>
>
> PR/5715
> * bfd/warning.m4: Disable by default -Werror for mingw.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
It is wrong.
>
> +# Disable -Werror by default when using gcc and mingw
^^^^^^^^^^^^^
It is wrong.
> +case "${host}" in
> + *-*-mingw32*)
> + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
> + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
> + fi
> + ;;
> + *) ;;
> +esac
> +
Do you want to use -Wno-format on 64bit mingw? I thought 64bit mingw
was OK. Otherwise, you will see the same error on 64bit mingw.
H.J.