aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-08-19 14:25:28 +0200
committerGitHub <noreply@github.com>2020-08-19 14:25:28 +0200
commit62ad09fe02c4a67e727822134768e4ebe6c8cde4 (patch)
tree9eceacdf5853933ddce244a93d35bf1e6bea3adb /configure.ac
parente1dc2d5516562c2e6e9668325d897c0eccdc6d2a (diff)
downloadPROJ-62ad09fe02c4a67e727822134768e4ebe6c8cde4.tar.gz
PROJ-62ad09fe02c4a67e727822134768e4ebe6c8cde4.zip
Revert compiler generated Fused Multiply Addition optimized routines (#2327)
Fixes #2326 Partially reverts commit b84c9d0cb61f3bd561da6092e15e294ae7e410e0 to remove the use of the gcc 6 mechanism of generated multiple versions of functions with different optimization flags, which was found to causes crashes when dlopen'ing PROJ on CentOS 7.8 with gcc 8.3.1
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 0 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac
index 542de4d2..17f19900 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,27 +128,6 @@ fi
AC_LANG_POP([C++])
dnl ---------------------------------------------------------------------------
-dnl Check if __attribute__((target_clones("fma","default"))) works
-dnl This is needed for example on Alpine Linux where for some reason, building
-dnl such tagged functions fails with 'error: the call requires 'ifunc', which is not supported by this target'
-dnl ---------------------------------------------------------------------------
-
-TARGET_CLONES_FMA_FLAGS=""
-AC_MSG_CHECKING([if target_clones_fma works])
-SAVED_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -Werror"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-[[
-__attribute__((target_clones("fma","default"))) void foo() {}
-]])],
-[AC_MSG_RESULT([yes])]
-[TARGET_CLONES_FMA_FLAGS="-DTARGET_CLONES_FMA_ALLOWED"],
-[AC_MSG_RESULT([no])])
-CFLAGS="$SAVED_CFLAGS"
-AC_SUBST(TARGET_CLONES_FMA_FLAGS,$TARGET_CLONES_FMA_FLAGS)
-
-
-dnl ---------------------------------------------------------------------------
dnl Check for --enable-lto
dnl ---------------------------------------------------------------------------