This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Makefile] Bootstrap with -Wold-style-definition
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Kelley Cook <kelleycook at wideopenwest dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 30 Oct 2003 21:22:04 -0500 (EST)
- Subject: Re: [Makefile] Bootstrap with -Wold-style-definition
On Thu, 30 Oct 2003, Kelley Cook wrote:
> A simple patch which adds in -Wold-style-definition to the bootstrap to
> which should help everyone remember to retain the C90 conversion.
> OK?
Not as is.
Your patch adds:
! # other than C. These flags need to be available back to at least GCC 2.7.2.
yet gcc-2.95 gives me:
cc1: Invalid option `-Wold-style-definition'
I think you can solve this with an autoconf test though, which
would also be handy for adding -Wdeclaration-after-statement.
brgds, H-P