* 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
This commit is contained in:
parent
c26ea74ad6
commit
d2e2b309e8
@ -1,3 +1,10 @@
|
|||||||
|
Sat Apr 14 12:55:03 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
|
||||||
|
if -O3 is given.
|
||||||
|
|
||||||
|
* win32/win32.c (child_result): dropped colon.
|
||||||
|
|
||||||
Sat Apr 14 10:45:18 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
Sat Apr 14 10:45:18 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* lib/webrick/server.rb (WEBrick::GenericServer#start):
|
* lib/webrick/server.rb (WEBrick::GenericServer#start):
|
||||||
|
@ -912,11 +912,13 @@ if test "$GCC" = yes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable,
|
AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable,
|
||||||
|
[RUBY_WERROR_FLAG(
|
||||||
[AC_TRY_LINK([@%:@include <stdlib.h>],
|
[AC_TRY_LINK([@%:@include <stdlib.h>],
|
||||||
[exit(0); __builtin_unreachable();],
|
[exit(0); __builtin_unreachable();],
|
||||||
[rb_cv_func___builtin_unreachable=yes],
|
[rb_cv_func___builtin_unreachable=yes],
|
||||||
[rb_cv_func___builtin_unreachable=no])
|
[rb_cv_func___builtin_unreachable=no])
|
||||||
])
|
])
|
||||||
|
])
|
||||||
if test "$rb_cv_func___builtin_unreachable" = yes; then
|
if test "$rb_cv_func___builtin_unreachable" = yes; then
|
||||||
AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()])
|
AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()])
|
||||||
fi
|
fi
|
||||||
|
@ -1079,7 +1079,7 @@ child_result(struct ChildRecord *child, int mode)
|
|||||||
GetExitCodeProcess(child->hProcess, &exitcode);
|
GetExitCodeProcess(child->hProcess, &exitcode);
|
||||||
CloseChildHandle(child);
|
CloseChildHandle(child);
|
||||||
_exit(exitcode);
|
_exit(exitcode);
|
||||||
default
|
default:
|
||||||
UNREACHABLE;
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user