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/backend external/gpl3/gcc: Suppres...



details:   https://anonhg.NetBSD.org/src/rev/41f523e1afb5
branches:  trunk
changeset: 1010910:41f523e1afb5
user:      fox <fox%NetBSD.org@localhost>
date:      Fri Jun 12 14:37:51 2020 +0000

description:
external/gpl3/gcc: Suppress -Werror=maybe-uninitialized

Seems like false positive since the ASM_GENERATE_INTERNAL_LABEL macro
stores the value into prev_label, so it is alright for prev_label to
be uninitialized.

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

Reviewed by: kamil@

diffstat:

 external/gpl3/gcc/usr.bin/backend/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r d7227b050593 -r 41f523e1afb5 external/gpl3/gcc/usr.bin/backend/Makefile
--- a/external/gpl3/gcc/usr.bin/backend/Makefile        Fri Jun 12 14:12:20 2020 +0000
+++ b/external/gpl3/gcc/usr.bin/backend/Makefile        Fri Jun 12 14:37:51 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.57 2019/10/29 02:49:05 christos Exp $
+#      $NetBSD: Makefile,v 1.58 2020/06/12 14:37:51 fox Exp $
 
 LIBISPRIVATE=  yes
 
@@ -595,6 +595,8 @@
 
 CFLAGS+=       -Wno-stack-protector
 
+COPTS.dwarf2out.c+=-Wno-error=maybe-uninitialized
+
 .if ${GCC_MACHINE_ARCH} == "m68000" || ${GCC_MACHINE_ARCH} == "m68k" || \
        ${GCC_MACHINE_ARCH} == "coldfire"
 COPTS.tree-loop-distribution.c+=-O2



Home | Main Index | Thread Index | Old Index