summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-27 00:15:13 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-27 00:15:13 -0800
commit8d9f591005be5d9e973687af2472a8f9f6c525ae (patch)
tree6d53aa0c306a81f2c27449857c875457dce342ec
parent52ae33a2cbcdd946c6787ebeaa066e149085a8e8 (diff)
downloadnasm-8d9f591005be5d9e973687af2472a8f9f6c525ae.tar.gz
configure.in: add -fwrapv to gcc and compatible compilers
Add the -fwrapv to gcc and compatible C compilers, to enforce deterministic 2's-complement behavior with regards to signed and unsigned integer types. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 63192065..01c0f07e 100644
--- a/configure.in
+++ b/configure.in
@@ -79,6 +79,7 @@ dnl If we have gcc, add appropriate options
PA_ADD_CFLAGS([-W])
PA_ADD_CFLAGS([-Wall])
PA_ADD_CFLAGS([-std=c99])
+PA_ADD_CFLAGS([-fwrapv])
dnl Look for programs...
AC_CHECK_PROGS(NROFF, nroff, false)