From 536bc0463fec9434a67b4edf569e07ed062a2643 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 8 Apr 2012 20:02:33 +0000 Subject: [PATCH] make -fwrapv common; at least clang also can do it --- Build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Build.sh b/Build.sh index 94bb898..c3d1f27 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.543 2012/04/07 11:19:45 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.544 2012/04/08 20:02:33 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 @@ -1058,7 +1058,6 @@ if test $ct = gcc; then ac_flags 0 wnooverflow -Wno-overflow ac_flags 1 fnostrictaliasing -fno-strict-aliasing ac_flags 1 fstackprotectorall -fstack-protector-all - ac_flags 1 fwrapv -fwrapv test $cm = dragonegg && case " $CC $CFLAGS $LDFLAGS " in *\ -fplugin=*dragonegg*) ;; *) ac_flags 1 fplugin_dragonegg -fplugin=dragonegg ;; @@ -1155,6 +1154,7 @@ fi # flags common to a subset of compilers (run with -Werror on gcc) if test 1 = $i; then ac_flags 1 wall -Wall + ac_flags 1 fwrapv -fwrapv fi phase=x @@ -1392,7 +1392,7 @@ else #define EXTERN #define MKSH_INCLUDES_ONLY #include "sh.h" - __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.543 2012/04/07 11:19:45 tg Exp $"); + __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.544 2012/04/08 20:02:33 tg Exp $"); int main(void) { printf("Hello, World!\n"); return (0); } EOF case $cm in