summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-01-15 19:42:50 +0000
committerIan Lynagh <igloo@earth.li>2007-01-15 19:42:50 +0000
commit50ebea6a8607f4d83dd2d8d99acf9a55e4d39349 (patch)
tree5474b73f02c487258fd1ddde2876f4963409f7d1 /configure.ac
parent85c2ef54a48b12bb7bef0e841e4948fae13d7242 (diff)
downloadhaskell-50ebea6a8607f4d83dd2d8d99acf9a55e4d39349.tar.gz
Give -fwrapv to gcc when it supports it
Fixes trac #952: Haskell requires consistent overflow behaviour, which gcc doesn't give without this flag.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8b00e5af02..85301aa2b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -878,6 +878,7 @@ FP_HAVE_GCC
FP_MINGW_GCC
FP_GCC_NEEDS_NO_OMIT_LFPTR
FP_GCC_HAS_NO_UNIT_AT_A_TIME
+FP_GCC_HAS_WRAPV
dnl ** figure out how to invoke cpp directly (gcc -E is no good)
AC_PROG_CPP