Module Name:    src
Committed By:   mrg
Date:           Thu Oct 19 04:27:24 UTC 2023

Modified Files:
        src/bin/sh: Makefile

Log Message:
convert gcc12 -O1 into -Wno-error=clobbered.

parser.c wants all the optimisation, and this is very likely a
false positive.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/bin/sh/Makefile

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

Modified files:

Index: src/bin/sh/Makefile
diff -u src/bin/sh/Makefile:1.122 src/bin/sh/Makefile:1.123
--- src/bin/sh/Makefile:1.122	Sat Oct 14 06:53:56 2023
+++ src/bin/sh/Makefile	Thu Oct 19 04:27:24 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.122 2023/10/14 06:53:56 mrg Exp $
+#	$NetBSD: Makefile,v 1.123 2023/10/19 04:27:24 mrg Exp $
 #	@(#)Makefile	8.4 (Berkeley) 5/5/95
 
 .include <bsd.own.mk>
@@ -94,7 +94,7 @@ COPTS.jobs.c = -Wno-format-nonliteral
 COPTS.var.c = -Wno-format-nonliteral
 
 # XXXGCC12 - only on some targets
-COPTS.parser.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -O1 :}
+COPTS.parser.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-error=clobbered :}
 
 .include <bsd.prog.mk>
 .include <bsd.subdir.mk>

Reply via email to