svn commit: r280357 - head/bin/expr

Dimitry Andric dim at FreeBSD.org
Sun Mar 22 22:40:33 UTC 2015


Author: dim
Date: Sun Mar 22 22:40:32 2015
New Revision: 280357
URL: https://svnweb.freebsd.org/changeset/base/280357

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

Modified:
  head/bin/expr/Makefile

Modified: head/bin/expr/Makefile
==============================================================================
--- head/bin/expr/Makefile	Sun Mar 22 22:00:29 2015	(r280356)
+++ head/bin/expr/Makefile	Sun Mar 22 22:40:32 2015	(r280357)
@@ -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-head mailing list