for GCC 5.3 pass -fwrapv as this relies upon well-defined integer overflow.

This commit is contained in:
mrg 2016-04-01 08:19:31 +00:00
parent 103bd8df24
commit 6d27b0e86e

View File

@ -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