This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Converting to ISO C89
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 30 Mar 2003 10:15:21 +0200
- Subject: Re: Converting to ISO C89
- Organization: Integrable Solutions
- References: <200303250642.h2P6gZ4r025932@doubledemon.codesourcery.com>
Mark Mitchell <mark at codesourcery dot com> writes:
[...]
| The verdict is in: it is OK to assume ISO C89 in all code in GCC
| proper. (In other words, libiberty and/or other libraries are not
| affected.)
This patchlet modifies the Makefile machinery to support that
decision. OK to install?
-- Gaby
2003-03-30 Gabriel Dos Reis <gdr at integrable-solutions dot net>
* Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
(STRICT2_WARN): Likewise.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1026
diff -p -r1.1026 Makefile.in
*** Makefile.in 23 Mar 2003 20:13:50 -0000 1.1026
--- Makefile.in 30 Mar 2003 08:14:29 -0000
*************** coverageexts = .{da,bbg}
*** 141,148 ****
# with other compilers. This is partially controlled by configure in
# stage1, as not all versions of gcc understand -Wno-long-long.
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
! STRICT_WARN = -Wtraditional @strict1_warn@
! STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long @WERROR@
# This is set by --enable-checking. The idea is to catch forgotten
# "extern" tags in header files.
--- 141,148 ----
# with other compilers. This is partially controlled by configure in
# stage1, as not all versions of gcc understand -Wno-long-long.
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
! STRICT_WARN = @strict1_warn@
! STRICT2_WARN = -pedantic -Wno-long-long @WERROR@
# This is set by --enable-checking. The idea is to catch forgotten
# "extern" tags in header files.