Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/expr for GCC 5.3 pass -fwrapv as this relies upon well-d...



details:   https://anonhg.NetBSD.org/src/rev/5f22da6389de
branches:  trunk
changeset: 344486:5f22da6389de
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Apr 01 08:19:31 2016 +0000

description:
for GCC 5.3 pass -fwrapv as this relies upon well-defined integer overflow.

diffstat:

 bin/expr/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r a6a6d2051a0a -r 5f22da6389de bin/expr/Makefile
--- a/bin/expr/Makefile Fri Apr 01 08:12:00 2016 +0000
+++ b/bin/expr/Makefile Fri Apr 01 08:19:31 2016 +0000
@@ -1,6 +1,12 @@
-#      $NetBSD: Makefile,v 1.14 2000/09/19 17:20:00 jdolecek Exp $
+#      $NetBSD: Makefile,v 1.15 2016/04/01 08:19:31 mrg Exp $
 
 PROG=          expr
 SRCS=          expr.y
 
 .include <bsd.prog.mk>
+
+# XXXGCC5
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && ${ACTIVE_CC} == "gcc"
+CFLAGS+= -fwrapv
+.endif
+



Home | Main Index | Thread Index | Old Index