From 84bfebdf4096e462cca8e8c198a8c5849832b322 Mon Sep 17 00:00:00 2001 From: Charles Karney Date: Tue, 20 Mar 2018 13:27:43 -0400 Subject: For the Intel compiler use "-fp-model precise" on all platforms. --- CMakeLists.txt | 2 +- configure.ac | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a60b540..02de6a81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ if (CMAKE_C_COMPILER_ID STREQUAL "Intel") if (MSVC) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fp:precise") else () - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprotect-parens -fsigned-zeros") + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fp-model precise") endif () endif () diff --git a/configure.ac b/configure.ac index ee5fc507..66da9d13 100644 --- a/configure.ac +++ b/configure.ac @@ -33,8 +33,8 @@ dnl Check flag for accurate arithmetic with Intel compiler. This is dnl needed to stop the compiler from ignoring parentheses in expressions dnl like (a + b) + c and from simplifying 0.0 + x to x (which is wrong if dnl x = -0.0). -AX_CHECK_COMPILE_FLAG([-fprotect-parens -fsigned-zeros], - [CFLAGS="$CFLAGS -fprotect-parens -fsigned-zeros"],,[-Werror]) +AX_CHECK_COMPILE_FLAG([-fp-model precise], + [CFLAGS="$CFLAGS -fp-model precise"],,[-Werror]) dnl Check for C99 math functions save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" @@ -113,8 +113,8 @@ dnl posix mutexes for instance). dnl --------------------------------------------------------------------------- AC_ARG_WITH([mutex], - AS_HELP_STRING([--without-mutex], - [Disable real mutex locks (lacking pthreads)]),,) + AS_HELP_STRING([--without-mutex], + [Disable real mutex locks (lacking pthreads)]),,) AC_MSG_CHECKING([for mutexes]) THREAD_LIB="" -- cgit v1.2.3