Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn) (gtype-desc.o-warn...
gcc: * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn) (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn, insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn, c-parse.o-warn): Add -Wno-error. (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@". * configure.in (--enable-werror): Add new flag. * doc/install.texi (--enable-werror): Document. * configure: Regenerate. * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error. cp: Make-lang.in (cp/decl.o-warn): Add -Wno-error. f: Make-lang.in (f/sta.o-warn): Add -Wno-error. java: Make-lang.in (jvspec.o-warn): Add -Wno-error. From-SVN: r61544
This commit is contained in:
parent
4f9365e21a
commit
dd859b8ac0
|
@ -1,3 +1,17 @@
|
|||
2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
|
||||
(gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
|
||||
insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
|
||||
c-parse.o-warn): Add -Wno-error.
|
||||
(STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
|
||||
|
||||
* configure.in (--enable-werror): Add new flag.
|
||||
* doc/install.texi (--enable-werror): Document.
|
||||
* configure: Regenerate.
|
||||
|
||||
* objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
|
||||
|
||||
2003-01-21 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* genautomata.c (output_internal_insn_latency_func): Fix missing
|
||||
|
|
|
@ -109,7 +109,20 @@ VALGRIND_DRIVER_DEFINES = @valgrind_path_defines@
|
|||
|
||||
# This is how we control whether or not the additional warnings are applied.
|
||||
.-warn = $(STRICT_WARN)
|
||||
GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG)
|
||||
GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG) $(WERROR) $($@-warn)
|
||||
|
||||
# These files are to have -Werror bypassed in stage2:
|
||||
# These contain warnings from the PCH merge.
|
||||
gtype-desc.o-warn = -Wno-error
|
||||
c-decl.o-warn = -Wno-error
|
||||
# These are very hard to completely clean due to target complexities.
|
||||
varasm.o-warn = -Wno-error
|
||||
gcc.o-warn = -Wno-error
|
||||
insn-conditions.o-warn = -Wno-error
|
||||
@out_object_file@-warn = -Wno-error
|
||||
# Bison-1.75 output often yields (harmless) -Wtraditional warnings
|
||||
gengtype-yacc.o-warn = -Wno-error
|
||||
c-parse.o-warn = -Wno-error
|
||||
|
||||
# All warnings have to be shut off in stage1 if the compiler used then
|
||||
# isn't gcc; configure determines that. WARN_CFLAGS will be either
|
||||
|
@ -3349,6 +3362,7 @@ STAGE2_FLAGS_TO_PASS = \
|
|||
CFLAGS="$(BOOT_CFLAGS)" \
|
||||
LDFLAGS="$(BOOT_LDFLAGS)" \
|
||||
WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \
|
||||
WERROR="@WERROR@" \
|
||||
STRICT_WARN="$(STRICT2_WARN)" \
|
||||
libdir=$(libdir) \
|
||||
LANGUAGES="$(LANGUAGES)" \
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -265,6 +265,16 @@ AC_ARG_ENABLE(multilib,
|
|||
[], [enable_multilib=yes])
|
||||
AC_SUBST(enable_multilib)
|
||||
|
||||
# Enable -Werror in bootstrap stage2 and later.
|
||||
# Change the default to "no" on release branches.
|
||||
AC_ARG_ENABLE(werror,
|
||||
[ --enable-werror enable -Werror in bootstrap stage2 and later], [],
|
||||
[enable_werror=yes])
|
||||
if test x$enable_werror = xyes ; then
|
||||
WERROR=-Werror
|
||||
fi
|
||||
AC_SUBST(WERROR)
|
||||
|
||||
# Enable expensive internal checks
|
||||
AC_ARG_ENABLE(checking,
|
||||
[ --enable-checking[=LIST]
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
Make-lang.in (cp/decl.o-warn): Add -Wno-error.
|
||||
|
||||
2003-01-17 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/9167, c++/9358
|
||||
|
|
|
@ -90,6 +90,8 @@ CXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \
|
|||
|
||||
# Use loose warnings for this front end.
|
||||
cp-warn =
|
||||
# This contains warnings from the PCH merge.
|
||||
cp/decl.o-warn = -Wno-error
|
||||
|
||||
cc1plus$(exeext): $(CXX_OBJS) $(CXX_C_OBJS) $(BACKEND) \
|
||||
libcpp.a $(LIBDEPS)
|
||||
|
|
|
@ -821,6 +821,17 @@ Specify that the machine does not have a floating point unit. This
|
|||
option only applies to @samp{m68k-sun-sunos@var{n}}. On any other
|
||||
system, @option{--nfp} has no effect.
|
||||
|
||||
@item --enable-werror
|
||||
@itemx --disable-werror
|
||||
@itemx --enable-werror=yes
|
||||
@itemx --enable-werror=no
|
||||
When you specify this option, it controls whether certain files in the
|
||||
compiler are built with @option{-Werror} in bootstrap stage2 and later.
|
||||
If you don't specify it, @option{-Werror} is turned on for the main
|
||||
development trunk. However it defaults to off for release branches and
|
||||
final releases. The specific files which get @option{-Werror} are
|
||||
controlled by the Makefiles.
|
||||
|
||||
@item --enable-checking
|
||||
@itemx --enable-checking=@var{list}
|
||||
When you specify this option, the compiler is built to perform checking
|
||||
|
@ -975,7 +986,10 @@ be ignored.
|
|||
|
||||
It is normal to have compiler warnings when compiling certain files.
|
||||
Unless you are a GCC developer, you can generally ignore these warnings
|
||||
unless they cause compilation to fail.
|
||||
unless they cause compilation to fail. Developers should attempt to fix
|
||||
any warnings encountered, however they can temporarily continue past
|
||||
warnings-as-errors by specifying the configure flag
|
||||
@option{--disable-werror}.
|
||||
|
||||
On certain old systems, defining certain environment variables such as
|
||||
@env{CC} can interfere with the functioning of @command{make}.
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 21 08:42:12 2003 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
Make-lang.in (f/sta.o-warn): Add -Wno-error.
|
||||
|
||||
Thu Jan 16 10:53:16 2003 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* Make-lang.in (f/target.o): Depend on toplev.h.
|
||||
|
|
|
@ -93,6 +93,8 @@ F77_OBJS = f/bad.o f/bit.o f/bld.o f/com.o f/data.o f/equiv.o f/expr.o \
|
|||
|
||||
# Use loose warnings for this front end.
|
||||
f-warn =
|
||||
# type-punning warning
|
||||
f/sta.o-warn = -Wno-error
|
||||
|
||||
f771$(exeext): $(F77_OBJS) $(BACKEND) $(LIBDEPS)
|
||||
rm -f f771$(exeext)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
Make-lang.in (jvspec.o-warn): Add -Wno-error.
|
||||
|
||||
2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* check-init.c: Fix comment typos.
|
||||
|
|
|
@ -124,6 +124,8 @@ JVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o errors.o
|
|||
|
||||
# Use loose warnings for this front end.
|
||||
java-warn =
|
||||
# String length warnings
|
||||
jvspec.o-warn = -Wno-error
|
||||
|
||||
jc1$(exeext): $(JAVA_OBJS) $(BACKEND) $(LIBDEPS)
|
||||
rm -f $@
|
||||
|
|
|
@ -47,6 +47,8 @@ OBJECTIVE-C objective-c: cc1obj$(exeext)
|
|||
|
||||
# Use maximal warnings for this front end.
|
||||
objc-warn = $(STRICT_WARN)
|
||||
# Bison-1.75 output yields (harmless) -Wtraditional warnings
|
||||
objc/objc-parse.o-warn = -Wno-error
|
||||
|
||||
# Language-specific object files for Objective C.
|
||||
OBJC_OBJS = objc/objc-lang.o objc/objc-parse.o objc/objc-act.o
|
||||
|
|
Loading…
Reference in New Issue