From 6d27b0e86eff3f5b8a87edda2507939455f09b4a Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 1 Apr 2016 08:19:31 +0000 Subject: [PATCH] for GCC 5.3 pass -fwrapv as this relies upon well-defined integer overflow. --- bin/expr/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/expr/Makefile b/bin/expr/Makefile index 7c7612fcabf5..8f00fdf5ee4d 100644 --- a/bin/expr/Makefile +++ b/bin/expr/Makefile @@ -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 + +# XXXGCC5 +.if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && ${ACTIVE_CC} == "gcc" +CFLAGS+= -fwrapv +.endif +