Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 apply sh3 vs lex.c fix for GCC >= 9. us...
details: https://anonhg.NetBSD.org/src/rev/20aaf1197168
branches: trunk
changeset: 379943:20aaf1197168
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jun 28 09:09:14 2021 +0000
description:
apply sh3 vs lex.c fix for GCC >= 9. use shorter idiom.
fixes build issue reported by jdbaker in private email.
diffstat:
usr.bin/xlint/lint1/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bb17f9218582 -r 20aaf1197168 usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile Mon Jun 28 09:01:48 2021 +0000
+++ b/usr.bin/xlint/lint1/Makefile Mon Jun 28 09:09:14 2021 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index