Skip to content

Commit 51fa567

Browse files
committed
merge revision(s) r45512,r45513,r45515: [Backport ruby#9698]
configure.in: indent * configure.in (ac_cv_func___builtin_setjmp): adjust indent. * configure.in (ac_cv_func___builtin_setjmp): should not skip flags restoration in RUBY_WERROR_FLAG by `break`. [ruby-dev:48086] [Bug ruby#9698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent da8e7cc commit 51fa567

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Tue Aug 26 00:06:05 2014 Nobuyoshi Nakada <[email protected]>
2+
3+
* configure.in (ac_cv_func___builtin_setjmp): should not skip
4+
flags restoration in RUBY_WERROR_FLAG by `break`.
5+
[ruby-dev:48086] [Bug #9698]
6+
17
Tue Aug 26 00:02:51 2014 Nobuyoshi Nakada <[email protected]>
28

39
* configure.in (ac_cv_func___builtin_setjmp): __builtin_longjmp()

configure.in

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,21 +2026,23 @@ if test x"${ac_cv_func___builtin_setjmp}" = xyes; then
20262026
unset ac_cv_func___builtin_setjmp
20272027
fi
20282028
AC_CACHE_CHECK(for __builtin_setjmp, ac_cv_func___builtin_setjmp,
2029-
[
2030-
for cast in "" "(void *)"; do
2031-
RUBY_WERROR_FLAG(
2032-
[AC_TRY_LINK([@%:@include <setjmp.h>
2033-
@%:@include <stdio.h>
2034-
jmp_buf jb;
2035-
void t(void) {__builtin_longjmp($cast jb, 1);}],
20362029
[
2037-
void (*volatile f)(void) = t;
2038-
if (!__builtin_setjmp($cast jb)) printf("%d\n", f != 0);
2039-
],
2040-
[ac_cv_func___builtin_setjmp="yes with cast ($cast)"; break],
2041-
[ac_cv_func___builtin_setjmp=no])
2042-
])
2043-
done])
2030+
ac_cv_func___builtin_setjmp=no
2031+
for cast in "" "(void **)"; do
2032+
RUBY_WERROR_FLAG(
2033+
[AC_TRY_LINK([@%:@include <setjmp.h>
2034+
@%:@include <stdio.h>
2035+
jmp_buf jb;
2036+
void t(void) {__builtin_longjmp($cast jb, 1);}
2037+
int jump(void) {(void)(__builtin_setjmp($cast jb) ? 1 : 0); return 0;}],
2038+
[
2039+
void (*volatile f)(void) = t;
2040+
if (!jump()) printf("%d\n", f != 0);
2041+
],
2042+
[ac_cv_func___builtin_setjmp="yes with cast ($cast)"])
2043+
])
2044+
test "$ac_cv_func___builtin_setjmp" = no || break
2045+
done])
20442046

20452047
# we don't use _setjmp if _longjmp doesn't exist.
20462048
test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.2"
22
#define RUBY_RELEASE_DATE "2014-08-26"
3-
#define RUBY_PATCHLEVEL 210
3+
#define RUBY_PATCHLEVEL 211
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 8

0 commit comments

Comments
 (0)