Module Name:    src
Committed By:   fox
Date:           Fri Jun 12 14:37:51 UTC 2020

Modified Files:
        src/external/gpl3/gcc/usr.bin/backend: Makefile

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/external/gpl3/gcc/usr.bin/backend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.57 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.58
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.57	Tue Oct 29 02:49:05 2019
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri Jun 12 14:37:51 2020
@@ -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 @@ COPTS.tree.c=	${${ACTIVE_CC} == "clang" 
 
 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

Reply via email to