From 38a96f07ac3b351aeb9f3d685eaf0d4f9f01195a Mon Sep 17 00:00:00 2001 From: Elliot Ronaghan Date: Tue, 12 Jul 2016 15:52:18 -0700 Subject: [PATCH] Fix a bug in __builtin_unreachable configure check In 1167e9e, I accidentally tested je_cv_gcc_builtin_ffsl instead of je_cv_gcc_builtin_unreachable (copy-paste error), which meant that JEMALLOC_INTERNAL_UNREACHABLE was always getting defined as abort even if __builtin_unreachable support was detected. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6fe366c6..a58eb5e9 100644 --- a/configure.ac +++ b/configure.ac @@ -1061,7 +1061,7 @@ void foo (void) { foo(); } ], [je_cv_gcc_builtin_unreachable]) -if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then +if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then AC_DEFINE([JEMALLOC_INTERNAL_UNREACHABLE], [__builtin_unreachable]) else AC_DEFINE([JEMALLOC_INTERNAL_UNREACHABLE], [abort])