Module Name: src
Committed By: martin
Date: Sun Apr 10 13:21:34 UTC 2022
Modified Files:
src/usr.bin/xlint: Makefile.inc
Log Message:
PR 56789: avoid -ftrapv for alpha, it triggers a gcc error.
OK: rillig
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xlint/Makefile.inc
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/Makefile.inc
diff -u src/usr.bin/xlint/Makefile.inc:1.22 src/usr.bin/xlint/Makefile.inc:1.23
--- src/usr.bin/xlint/Makefile.inc:1.22 Sat Apr 9 22:26:49 2022
+++ src/usr.bin/xlint/Makefile.inc Sun Apr 10 13:21:34 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.22 2022/04/09 22:26:49 rillig Exp $
+# $NetBSD: Makefile.inc,v 1.23 2022/04/10 13:21:34 martin Exp $
.include <bsd.own.mk>
@@ -19,7 +19,9 @@ CPPFLAGS+= -I${.CURDIR}/../common
CLEANFILES+= *.gcno *.gcda *.gcov
+.if ${MACHINE_CPU} != "alpha"
CFLAGS+= ${ACTIVE_CC:Mgcc:%=-ftrapv}
+.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"