From e43237b115e648d69b5035c196851fb4a98698d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Fri, 10 Apr 2020 10:19:39 +0900 Subject: configure: always check for __builtin_unreachable Non-gcc compilers tend to have this intrinsic these days (e.g. icc). Better check it regardless of $GCC. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2d200a3235..d9e40b0591 100644 --- a/configure.ac +++ b/configure.ac @@ -1520,6 +1520,7 @@ AS_IF([test "$GCC" = yes], [ AS_IF([test "$rb_cv_gcc_sync_builtins" = yes], [ AC_DEFINE(HAVE_GCC_SYNC_BUILTINS) ]) +]) AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable, [RUBY_WERROR_FLAG( @@ -1532,7 +1533,6 @@ AS_IF([test "$GCC" = yes], [ AS_IF([test "$rb_cv_func___builtin_unreachable" = yes], [ AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()]) ]) -]) AC_CACHE_CHECK(for exported function attribute, rb_cv_func_exported, [ rb_cv_func_exported=no -- cgit v1.2.3