From 8d9f591005be5d9e973687af2472a8f9f6c525ae Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 27 Feb 2016 00:15:13 -0800 Subject: 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 --- configure.in | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.1