Module Name: src Committed By: mrg Date: Mon Aug 14 03:18:15 UTC 2023
Modified Files: src/bin/sh: Makefile Log Message: use -O1 on sh3, GCC 12 and parser.c. this triggers clobbered vs. longjmp/setjmp warnings with -Os that sh3 uses. To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 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.120 src/bin/sh/Makefile:1.121 --- src/bin/sh/Makefile:1.120 Sun Oct 10 08:35:34 2021 +++ src/bin/sh/Makefile Mon Aug 14 03:18:14 2023 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.120 2021/10/10 08:35:34 rillig Exp $ +# $NetBSD: Makefile,v 1.121 2023/08/14 03:18:14 mrg Exp $ # @(#)Makefile 8.4 (Berkeley) 5/5/95 .include <bsd.own.mk> @@ -93,5 +93,10 @@ COPTS.printf.c = -Wno-format-nonliteral COPTS.jobs.c = -Wno-format-nonliteral COPTS.var.c = -Wno-format-nonliteral +# XXXGCC12 - only on some targets +.if ${MACHINE_CPU} == "sh3" +COPTS.parser.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -O1 :} +.endif + .include <bsd.prog.mk> .include <bsd.subdir.mk>