diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-14 03:55:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-14 03:55:06 +0000 |
commit | d2e2b309e82f9f0f68f62952673233331465917f (patch) | |
tree | 4c510e770b62b9e493062b5702592f868226275e /configure.in | |
parent | c26ea74ad670be16cab2f38ec557d1d0505e5d39 (diff) | |
download | ruby-d2e2b309e82f9f0f68f62952673233331465917f.tar.gz |
* configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
if -O3 is given.
* win32/win32.c (child_result): dropped colon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 9b44842666..e7cb7455a0 100644 --- a/configure.in +++ b/configure.in @@ -912,11 +912,13 @@ if test "$GCC" = yes; then fi AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable, + [RUBY_WERROR_FLAG( [AC_TRY_LINK([@%:@include <stdlib.h>], [exit(0); __builtin_unreachable();], [rb_cv_func___builtin_unreachable=yes], [rb_cv_func___builtin_unreachable=no]) ]) + ]) if test "$rb_cv_func___builtin_unreachable" = yes; then AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()]) fi |