svn commit: r281148 - in stable: 10/bin/expr 9/bin/expr

Dimitry Andric dim at FreeBSD.org
Mon Apr 6 14:45:41 UTC 2015


Author: dim
Date: Mon Apr  6 14:45:40 2015
New Revision: 281148
URL: https://svnweb.freebsd.org/changeset/base/281148

Log:
  MFC r280357:
  
  Build expr with -fwrapv, since it relies on signed integer wrapping
  having defined behavior.
  
  Reported by:	rodrigc

Modified:
  stable/9/bin/expr/Makefile
Directory Properties:
  stable/9/   (props changed)
  stable/9/bin/   (props changed)
  stable/9/bin/expr/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/bin/expr/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/9/bin/expr/Makefile
==============================================================================
--- stable/9/bin/expr/Makefile	Mon Apr  6 13:55:33 2015	(r281147)
+++ stable/9/bin/expr/Makefile	Mon Apr  6 14:45:40 2015	(r281148)
@@ -4,4 +4,7 @@ PROG=	expr
 SRCS=	expr.y
 YFLAGS=
 
+# expr relies on signed integer wrapping
+CFLAGS+= -fwrapv
+
 .include <bsd.prog.mk>


More information about the svn-src-stable-9 mailing list