This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Converting to ISO C89


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.
   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]