From: nasm-bot f. H. P. A. <hp...@zy...> - 2016-02-27 08:18:17
|
Commit-ID: 8d9f591005be5d9e973687af2472a8f9f6c525ae Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=8d9f591005be5d9e973687af2472a8f9f6c525ae Author: H. Peter Anvin <hp...@zy...> AuthorDate: Sat, 27 Feb 2016 00:15:13 -0800 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Sat, 27 Feb 2016 00:15:13 -0800 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 <hp...@zy...> --- configure.in | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.in b/configure.in index 6319206..01c0f07 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) |