aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-11-03 06:35:30 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2003-11-03 06:35:30 +0100
commitee208a59192c846d2f79be475864b885fd5ec596 (patch)
tree53e7beb4b4702eee9623654618b7d878a7f4333c
parent9bcdf7352caa4c4c929fb3cb5699564358cb8772 (diff)
downloadgcc-ee208a59192c846d2f79be475864b885fd5ec596.zip
gcc-ee208a59192c846d2f79be475864b885fd5ec596.tar.gz
gcc-ee208a59192c846d2f79be475864b885fd5ec596.tar.bz2
Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2003-11-03 Andreas Jaeger <aj@suse.de> Zack Weinberg <zack@codesourcery.com> * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings. (SYSCALLS.c.X-warn): Suppress warnings. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r73211
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/Makefile.in4
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e279678..09c59c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-03 Andreas Jaeger <aj@suse.de>
+ Zack Weinberg <zack@codesourcery.com>
+
+ * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
+ (SYSCALLS.c.X-warn): Suppress warnings.
+
2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR optimization/12845
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 88184f3..1ef581b 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -187,6 +187,8 @@ gengtype-yacc.o-warn = -Wno-error
c-parse.o-warn = -Wno-error
# flex output may yield harmless "no previous prototype" warnings
gengtype-lex.o-warn = -Wno-error
+# SYSCALLS.c misses prototypes
+SYSCALLS.c.X-warn = -Wno-strict-prototypes -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
@@ -287,7 +289,7 @@ GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./xgcc -B./ -B$(build_tooldir)/bin/ -isyste
# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
# It omits XCFLAGS, and specifies -B./.
# It also specifies -isystem ./include to find, e.g., stddef.h.
-GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) @WERROR@ -isystem ./include $(TCFLAGS)
+GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) @WERROR@ $($@-warn) -isystem ./include $(TCFLAGS)
# ---------------------------------------------------
# Programs which produce files for the target machine