Module Name:    src
Committed By:   mrg
Date:           Mon Jun 28 09:09:14 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: Makefile

Log Message:
apply sh3 vs lex.c fix for GCC >= 9.  use shorter idiom.

fixes build issue reported by jdbaker in private email.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 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.73 src/usr.bin/xlint/lint1/Makefile:1.74
--- src/usr.bin/xlint/lint1/Makefile:1.73	Fri Jun 25 20:17:56 2021
+++ src/usr.bin/xlint/lint1/Makefile	Mon Jun 28 09:09:14 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.73 2021/06/25 20:17:56 tnn Exp $
+#	$NetBSD: Makefile,v 1.74 2021/06/28 09:09:14 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -28,7 +28,7 @@ CPPFLAGS+=	${DEBUG:D-DDEBUG}
 COPTS.err.c+=	${${ACTIVE_CC} == "clang":? -Wno-format-nonliteral :}
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 9 &&	\
+.if ${HAVE_GCC:U0} >= 9 &&	\
 	(${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb")
 COPTS.lex.c+=	-O0
 .endif

Reply via email to