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"
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to