This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Add -Werror to build_warnings
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 16 Feb 2005 12:06:53 +1030
- Subject: Re: Add -Werror to build_warnings
- References: <20050216002103.GA5231@namadgi>
On Wed, Feb 16, 2005 at 11:21:03AM +1100, Ben Elliston wrote:
> These flags are only used when the user
> explicitly passes --enable-build-warnings
Huh? I seem to get them by default.
> * configure.in (build_warnings): Add -Werror.
> * configure: Rebuild.
I like the idea, but I don't think we are quite ready yet. I still see
quite a few warnings with --enable-targets=all. You need to compile
with at least gcc-3.4 and gcc-4.0 on 32-bit and 64-bit targets, with
--enable-targets=all. On the 32-bit target, compile with
--enable-targets=all --enable-64-bit-bfd too, so that you test both
64-bit and 32-bit bfd_vma. Once you've done that, I'd say we are
probably ready for -Werror in all but gas/. For gas, you need to
compile for a number of targets, since gas isn't multi-target.
--
Alan Modra
IBM OzLabs - Linux Technology Centre