for GCC 5.3 pass -fwrapv as this relies upon well-defined integer overflow.diff -r1.14 -r1.15 src/bin/expr/Makefile
(mrg)
--- src/bin/expr/Makefile 2000/09/19 17:20:00 1.14
+++ src/bin/expr/Makefile 2016/04/01 08:19:31 1.15
@@ -1,6 +1,12 @@ | @@ -1,6 +1,12 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2000/09/19 17:20:00 jdolecek Exp $ | 1 | # $NetBSD: Makefile,v 1.15 2016/04/01 08:19:31 mrg Exp $ | |
2 | 2 | |||
3 | PROG= expr | 3 | PROG= expr | |
4 | SRCS= expr.y | 4 | SRCS= expr.y | |
5 | 5 | |||
6 | .include <bsd.prog.mk> | 6 | .include <bsd.prog.mk> | |
7 | ||||
8 | # XXXGCC5 | |||
9 | .if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && ${ACTIVE_CC} == "gcc" | |||
10 | CFLAGS+= -fwrapv | |||
11 | .endif | |||
12 |