Makefile.in (STRICT2_WARN): Add @WERROR@.

* Makefile.in (STRICT2_WARN): Add @WERROR@.
        (GCC_WARN_CFLAGS): Remove $(WERROR).
        (fixinc.sh-warn): New.
        * ada/Make-lang.in (ada-warn): Add $(WERROR).
        * cp/Make-lang.in (cp-warn): Add $(WERROR).
        * f/Make-lang.in (f-warn): Add $(WERROR).
        * java/Make-lang.in (java-warn): Add $(WERROR).
        * treelang/Make-lang.in (treelang-warn): Add $(WERROR).

From-SVN: r64606
This commit is contained in:
Loren J. Rittle 2003-03-20 03:11:25 +00:00 committed by Loren J. Rittle
parent 951312c819
commit 31260fb846
7 changed files with 23 additions and 7 deletions

View File

@ -1,3 +1,14 @@
2003-03-19 Loren James Rittle <ljrittle@acm.org>
* Makefile.in (STRICT2_WARN): Add @WERROR@.
(GCC_WARN_CFLAGS): Remove $(WERROR).
(fixinc.sh-warn): New.
* ada/Make-lang.in (ada-warn): Add $(WERROR).
* cp/Make-lang.in (cp-warn): Add $(WERROR).
* f/Make-lang.in (f-warn): Add $(WERROR).
* java/Make-lang.in (java-warn): Add $(WERROR).
* treelang/Make-lang.in (treelang-warn): Add $(WERROR).
2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
* c-common.h (c_dump_tree), c-dump.c (c_dump_tree),

View File

@ -142,7 +142,7 @@ coverageexts = .{da,bbg}
# 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
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.
@ -154,7 +154,7 @@ 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) $(WERROR) $($@-warn)
GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG) $($@-warn)
# These files are to have -Werror bypassed in stage2:
# These are very hard to completely clean due to target complexities.
@ -2475,6 +2475,11 @@ specs.ready: specs
$(STAMP) specs.ready; \
fi
# Until someone fixes this recursive make nightmare (please note where
# BUILD_CFLAGS and WARN_CFLAGS are first expanded below versus which
# later make invocation has the fine-grain -warn markings for fixinc):
fixinc.sh-warn = -Wno-error
FIXINCSRCDIR=$(srcdir)/fixinc
fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \
$(FIXINCSRCDIR)/procopen.c $(FIXINCSRCDIR)/gnu-regex.c \

View File

@ -83,7 +83,7 @@ ADA_FLAGS_TO_PASS = \
# FIXME: need to add $(ALL_ADA_CFLAGS) to .c.o suffix rule
# Use loose warnings for this front end, but add some special flags
ada-warn = $(ALL_ADA_CFLAGS)
ada-warn = $(ALL_ADA_CFLAGS) $(WERROR)
# unresolved warnings in a couple of files
ada/tracebak.o-warn = -Wno-error
ada/b_gnatb.o-warn = -Wno-error

View File

@ -90,7 +90,7 @@ CXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \
cp/optimize.o cp/mangle.o cp/cp-lang.o
# Use loose warnings for this front end.
cp-warn =
cp-warn = $(WERROR)
cc1plus$(exeext): $(CXX_OBJS) $(CXX_C_OBJS) $(BACKEND) \
libcpp.a $(LIBDEPS)

View File

@ -92,7 +92,7 @@ F77_OBJS = f/bad.o f/bit.o f/bld.o f/com.o f/data.o f/equiv.o f/expr.o \
f/stv.o f/stw.o f/symbol.o f/target.o f/top.o f/type.o f/where.o
# Use loose warnings for this front end.
f-warn =
f-warn = $(WERROR)
# type-punning warning
f/sta.o-warn = -Wno-error

View File

@ -123,7 +123,7 @@ JCFDUMP_OBJS = java/jcf-dump.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o \
JVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o errors.o
# Use loose warnings for this front end.
java-warn =
java-warn = $(WERROR)
# String length warnings
jvspec.o-warn = -Wno-error

View File

@ -64,7 +64,7 @@ TREE_SOURCE = ${srcdir}/treelang/parse.y ${srcdir}/treelang/lex.l ${srcdir}/tree
TREE_EXES = tree1$(exeext)
#no -Wtraditional warnings, allow long long
treelang-warn = $(LOOSE_WARN) -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations
treelang-warn = $(LOOSE_WARN) -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations $(WERROR)
# bison emits some unused static arrays (yytoknum)
treelang/parse.o-warn = -Wno-error