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

Dimitry Andric dim at FreeBSD.org
Mon Apr 6 14:45:42 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/10/bin/expr/Makefile
Directory Properties:
  stable/10/   (props changed)

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

Modified: stable/10/bin/expr/Makefile
==============================================================================
--- stable/10/bin/expr/Makefile	Mon Apr  6 13:55:33 2015	(r281147)
+++ stable/10/bin/expr/Makefile	Mon Apr  6 14:45:40 2015	(r281148)
@@ -6,6 +6,9 @@ PROG=	expr
 SRCS=	expr.y
 YFLAGS=
 
+# expr relies on signed integer wrapping
+CFLAGS+= -fwrapv
+
 NO_WMISSING_VARIABLE_DECLARATIONS=
 
 .if ${MK_TESTS} != "no"


More information about the svn-src-all mailing list