OSDN Git Service

* Makefile.in (STRICT2_WARN): Add @WERROR@.
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Mar 2003 03:11:25 +0000 (03:11 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Mar 2003 03:11:25 +0000 (03:11 +0000)
        (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

gcc/ChangeLog
gcc/Makefile.in
gcc/ada/Make-lang.in
gcc/cp/Make-lang.in
gcc/f/Make-lang.in
gcc/java/Make-lang.in
gcc/treelang/Make-lang.in

index 7a8272c..3dd1e46 100644 (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),
index ce560e7..f2c23fb 100644 (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 \
index c0c0809..c357ddb 100644 (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
index f6f707f..cd4b21c 100644 (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)
index 16ee90b..7acba67 100644 (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
 
index 24b6acb..b7c963b 100644 (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
 
index 51dc49a..9180d76 100644 (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