Module Name: src Committed By: martin Date: Tue Jun 22 12:58:28 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: Hack to avoid gcc 9 internal compiler error for sh3. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/usr.bin/xlint/lint1/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/Makefile diff -u src/usr.bin/xlint/lint1/Makefile:1.70 src/usr.bin/xlint/lint1/Makefile:1.71 --- src/usr.bin/xlint/lint1/Makefile:1.70 Sun Apr 18 22:51:24 2021 +++ src/usr.bin/xlint/lint1/Makefile Tue Jun 22 12:58:28 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.70 2021/04/18 22:51:24 rillig Exp $ +# $NetBSD: Makefile,v 1.71 2021/06/22 12:58:28 martin Exp $ .include <bsd.own.mk> @@ -27,6 +27,11 @@ CPPFLAGS+= ${DEBUG:D-DDEBUG} COPTS.err.c+= ${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :} +.if ${HAVE_GCC} == 9 && \ + (${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb") +COPTS.lex.c+= -O0 +.endif + BINDIR= /usr/libexec CLEANFILES+= ${MAN}