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

Reply via email to