diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 04:24:54 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 04:24:54 +0000 |
| commit | 3c508c9d9b1fed041c0efae7d996056efdf2fd50 (patch) | |
| tree | 68304e6df015b153ad552910c691bf5234d116a3 | |
| parent | 22bc771fc1605e0414a4d8cda4c3a8b82cb812f4 (diff) | |
merge revision(s) 45716: [Backport #9665]
* configure.in (rb_cv_func___builtin_unreachable): try with an
external variable not only by a warning, which might not be
shown due to the optimization. [ruby-core:61647] [Bug #9665]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | configure.in | 4 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Wed May 28 13:24:39 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (rb_cv_func___builtin_unreachable): try with an + external variable not only by a warning, which might not be + shown due to the optimization. [ruby-core:61647] [Bug #9665] + Wed May 28 13:20:32 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/openssl/ossl_asn1.c (ossl_asn1_initialize): SYMID on a value diff --git a/configure.in b/configure.in index f49a34c981..402919d174 100644 --- a/configure.in +++ b/configure.in @@ -1371,8 +1371,8 @@ if test "$GCC" = yes; then AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable, [RUBY_WERROR_FLAG( - [AC_TRY_LINK([@%:@include <stdlib.h>], - [exit(0); __builtin_unreachable();], + [AC_TRY_LINK([volatile int zero;], + [if (zero) __builtin_unreachable();], [rb_cv_func___builtin_unreachable=yes], [rb_cv_func___builtin_unreachable=no]) ]) @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2014-05-28" -#define RUBY_PATCHLEVEL 489 +#define RUBY_PATCHLEVEL 490 #define RUBY_RELEASE_YEAR 2014 #define RUBY_RELEASE_MONTH 5 |
