ruby-changes:28351
From: charliesome <ko1@a...>
Date: Sun, 21 Apr 2013 23:24:39 +0900 (JST)
Subject: [ruby-changes:28351] charliesome:r40403 (trunk): * configure.in: Revert using sigsetjmp by default due to performance
charliesome 2013-04-21 23:23:48 +0900 (Sun, 21 Apr 2013) New Revision: 40403 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40403 Log: * configure.in: Revert using sigsetjmp by default due to performance problems on some systems (eg. older Linux) Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 40402) +++ configure.in (revision 40403) @@ -1745,12 +1745,12 @@ if test ${setjmp_prefix+set}; then https://github.com/ruby/ruby/blob/trunk/configure.in#L1745 if test "${setjmp_prefix}" && eval test '$ac_cv_func_'${setjmp_prefix}setjmp = no; then AC_MSG_ERROR(${setjmp_prefix}setjmp is not available) fi -elif test "$ac_cv_func_sigsetjmp" = yes; then - AS_CASE([$target_os],[solaris*|cygwin*],[setjmp_prefix=],[setjmp_prefix=sig]) elif test "$ac_cv_func___builtin_setjmp" = yes; then setjmp_prefix=__builtin_ elif test "$ac_cv_func__setjmp" = yes; then setjmp_prefix=_ +elif test "$ac_cv_func_sigsetjmp" = yes; then + AS_CASE([$target_os],[solaris*|cygwin*],[setjmp_prefix=],[setjmp_prefix=sig]) else setjmp_prefix= fi @@ -1760,7 +1760,7 @@ else https://github.com/ruby/ruby/blob/trunk/configure.in#L1760 unset setjmp_sigmask fi AC_MSG_RESULT(${setjmp_prefix}setjmp) -AC_DEFINE_UNQUOTED([RUBY_SETJMP(env)], [${setjmp_prefix}setjmp(env${setjmp_sigmask+,1})]) +AC_DEFINE_UNQUOTED([RUBY_SETJMP(env)], [${setjmp_prefix}setjmp(env${setjmp_sigmask+,0})]) AC_DEFINE_UNQUOTED([RUBY_LONGJMP(env,val)], [${setjmp_prefix}longjmp(env,val)]) AC_DEFINE_UNQUOTED(RUBY_JMP_BUF, ${setjmp_sigmask+${setjmp_prefix}}jmp_buf) Index: ChangeLog =================================================================== --- ChangeLog (revision 40402) +++ ChangeLog (revision 40403) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Apr 21 23:19:00 2013 Charlie Somerville <charlie@c...> + + * configure.in: Revert using sigsetjmp by default due to performance + problems on some systems (eg. older Linux) + Sun Apr 21 21:35:00 2013 Charlie Somerville <charlie@c...> * configure.in: Use sigsetjmp by default so jumping out of signal -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/