Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/usr.bin external/gpl3/gcc: Suppress -Werro...



details:   https://anonhg.NetBSD.org/src/rev/21c73e5f01d4
branches:  trunk
changeset: 744646:21c73e5f01d4
user:      fox <fox%NetBSD.org@localhost>
date:      Sun Feb 09 08:04:40 2020 +0000

description:
external/gpl3/gcc: Suppress -Werror=format-overflow error.

Add -Wno-error=format-overflow for c-cppbuiltin.c and c-typeck.c to prevent
build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@

diffstat:

 external/gpl3/gcc/usr.bin/cc1/Makefile    |  6 +++---
 external/gpl3/gcc/usr.bin/cc1obj/Makefile |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 7962db00ab30 -r 21c73e5f01d4 external/gpl3/gcc/usr.bin/cc1/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1/Makefile    Sun Feb 09 07:59:44 2020 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1/Makefile    Sun Feb 09 08:04:40 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.14 2019/02/06 16:57:30 christos Exp $
+#      $NetBSD: Makefile,v 1.15 2020/02/09 08:04:40 fox Exp $
 
 PROG=          cc1
 SRCS=          ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -32,7 +32,7 @@
 COPTS.c-attribs.c=     -Wno-stack-protector
 COPTS.c-aux-info.c=    -Wno-stack-protector
 COPTS.c-common.c=      -Wno-stack-protector
-COPTS.c-cppbuiltin.c=  -Wno-stack-protector
+COPTS.c-cppbuiltin.c=  -Wno-stack-protector -Wno-error=format-overflow
 COPTS.c-decl.c=                -Wno-stack-protector
 COPTS.c-format.c=      -Wno-stack-protector
 COPTS.c-format.h=      -Wno-stack-protector
@@ -40,7 +40,7 @@
 COPTS.c-opts.c=                -Wno-stack-protector
 COPTS.c-ppoutput.c=    -Wno-stack-protector
 COPTS.c-pragma.c=      -Wno-stack-protector
-COPTS.c-typeck.c=      -Wno-stack-protector
+COPTS.c-typeck.c=      -Wno-stack-protector -Wno-error=format-overflow
 
 CPPFLAGS.default-c.c+= -I${BACKENDOBJ}
 
diff -r 7962db00ab30 -r 21c73e5f01d4 external/gpl3/gcc/usr.bin/cc1obj/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1obj/Makefile Sun Feb 09 07:59:44 2020 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1obj/Makefile Sun Feb 09 08:04:40 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.12 2019/02/06 16:57:30 christos Exp $
+#      $NetBSD: Makefile,v 1.13 2020/02/09 08:04:40 fox Exp $
 
 MYOBJS=                ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS} 
 PROG=          cc1obj
@@ -35,13 +35,13 @@
 COPTS.c-attribs.c+=                    -Wno-stack-protector
 COPTS.c-aux-info.c+=                   -Wno-stack-protector
 COPTS.c-common.c+=                     -Wno-stack-protector
-COPTS.c-cppbuiltin.c+=                 -Wno-stack-protector
+COPTS.c-cppbuiltin.c+=                 -Wno-stack-protector -Wno-error=format-overflow
 COPTS.c-decl.c+=                       -Wno-stack-protector
 COPTS.c-format.c+=                     -Wno-stack-protector
 COPTS.c-lex.c+=                                -Wno-stack-protector
 COPTS.c-ppoutput.c+=                   -Wno-stack-protector
 COPTS.c-pragma.c+=                     -Wno-stack-protector
-COPTS.c-typeck.c+=                     -Wno-stack-protector
+COPTS.c-typeck.c+=                     -Wno-stack-protector -Wno-error=format-overflow
 COPTS.objc-act.c+=                     -Wno-stack-protector
 COPTS.objc-gnu-runtime-abi-01.c+=      -Wno-stack-protector
 COPTS.objc-next-runtime-abi-01.c+=     -Wno-stack-protector



Home | Main Index | Thread Index | Old Index