Module Name: src
Committed By: mrg
Date: Fri Apr 1 08:19:32 UTC 2016
Modified Files:
src/bin/expr: Makefile
Log Message:
for GCC 5.3 pass -fwrapv as this relies upon well-defined integer overflow.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/bin/expr/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/expr/Makefile
diff -u src/bin/expr/Makefile:1.14 src/bin/expr/Makefile:1.15
--- src/bin/expr/Makefile:1.14 Tue Sep 19 17:20:00 2000
+++ src/bin/expr/Makefile Fri Apr 1 08:19:31 2016
@@ -1,6 +1,12 @@
-# $NetBSD: Makefile,v 1.14 2000/09/19 17:20:00 jdolecek Exp $
+# $NetBSD: Makefile,v 1.15 2016/04/01 08:19:31 mrg Exp $
PROG= expr
SRCS= expr.y
.include <bsd.prog.mk>
+
+# XXXGCC5
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && ${ACTIVE_CC} == "gcc"
+CFLAGS+= -fwrapv
+.endif
+