aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2020-04-30 09:29:23 +0200
committerAldy Hernandez <aldyh@redhat.com>2020-04-30 09:32:40 +0200
commit671279d304439d2f307f60d1ebcca6b2c7ea6469 (patch)
treef1f8a822cf93bfae2316b739ac12fe51c9afca1b
parent638cee48e65b9efcbced5adbef24233544a3450e (diff)
downloadgcc-671279d304439d2f307f60d1ebcca6b2c7ea6469.zip
gcc-671279d304439d2f307f60d1ebcca6b2c7ea6469.tar.gz
gcc-671279d304439d2f307f60d1ebcca6b2c7ea6469.tar.bz2
Disable -Wformat and -Wimplicit-fallthrough for stage1 builds.
-rw-r--r--gcc/Makefile.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 89a56c3..934d946 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -221,15 +221,13 @@ libgcov-merge-tool.o-warn = -Wno-error
gimple-match.o-warn = -Wno-unused
generic-match.o-warn = -Wno-unused
dfp.o-warn = -Wno-strict-aliasing
-tree-ssa-strlen.o-warn = -Wno-format -Wno-implicit-fallthrough
-gimple-ssa-sprintf.o-warn = -Wno-format -Wno-implicit-fallthrough
# 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
# $(GCC_WARN_CFLAGS), or nothing. Similarly, WARN_CXXFLAGS will be
# either $(GCC_WARN_CXXFLAGS), or nothing.
-WARN_CFLAGS = @warn_cflags@
-WARN_CXXFLAGS = @warn_cxxflags@
+WARN_CFLAGS = @warn_cflags@ -Wno-format -Wno-implicit-fallthrough
+WARN_CXXFLAGS = @warn_cxxflags@ -Wno-format -Wno-implicit-fallthrough
CPPFLAGS = @CPPFLAGS@