(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).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64606
138bc75d-0d04-0410-961f-
82ee72b054a4
+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),
# 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.
# 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.
$(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 \
# 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
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)
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
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
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