[前][次][番号順一覧][スレッド一覧]

ruby-changes:60723

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Apr 2020 16:17:50 +0900 (JST)
Subject: [ruby-changes:60723] e43237b115 (master): configuRe: always check for __builtin_unreachable

https://git.ruby-lang.org/ruby.git/commit/?id=e43237b115

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?=
 <shyouhei@r...>
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.

diff --git a/configure.ac b/configure.ac
index 2d200a3..d9e40b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1520,6 +1520,7 @@ AS_IF([test "$GCC" = yes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L1520
     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], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L1533
     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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]