ruby-changes:43027
From: naruse <ko1@a...>
Date: Sat, 21 May 2016 22:24:40 +0900 (JST)
Subject: [ruby-changes:43027] naruse:r55101 (trunk): * configure.in (ALWAYS_INLINE): force compilers the function inlined.
naruse 2016-05-21 22:24:32 +0900 (Sat, 21 May 2016) New Revision: 55101 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55101 Log: * configure.in (ALWAYS_INLINE): force compilers the function inlined. Modified files: trunk/ChangeLog trunk/configure.in trunk/win32/Makefile.sub Index: configure.in =================================================================== --- configure.in (revision 55100) +++ configure.in (revision 55101) @@ -1807,6 +1807,7 @@ RUBY_FUNC_ATTRIBUTE(__deprecated__, DEPR https://github.com/ruby/ruby/blob/trunk/configure.in#L1807 RUBY_FUNC_ATTRIBUTE(__deprecated__("by "@%:@n), DEPRECATED_BY(n,x), rb_cv_func_deprecated_by) RUBY_TYPE_ATTRIBUTE(__deprecated__ mesg, DEPRECATED_TYPE(mesg,x), rb_cv_type_deprecated) RUBY_FUNC_ATTRIBUTE(__noinline__, NOINLINE) +RUBY_FUNC_ATTRIBUTE(__always_inline__, ALWAYS_INLINE) RUBY_FUNC_ATTRIBUTE(__error__, ERRORFUNC) RUBY_FUNC_ATTRIBUTE(__warning__, WARNINGFUNC) RUBY_FUNC_ATTRIBUTE(__weak__, WEAK, rb_cv_func_weak) Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 55100) +++ win32/Makefile.sub (revision 55101) @@ -596,6 +596,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L596 #define DEPRECATED_TYPE(mesg, x) __declspec(deprecated mesg) x #define NOINLINE(x) __declspec(noinline) x !endif +#define ALWAYS_INLINE(x) __forceinline x #define UNREACHABLE __assume(0) #define ASSUME(x) __assume(!!(x)) #define FUNC_STDCALL(x) __stdcall x Index: ChangeLog =================================================================== --- ChangeLog (revision 55100) +++ ChangeLog (revision 55101) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat May 21 21:07:18 2016 NARUSE, Yui <naruse@r...> + + * configure.in (ALWAYS_INLINE): force compilers the function inlined. + Sat May 21 16:16:03 2016 Kazuki Yamaguchi <k@r...> * ext/openssl/ossl_ssl.c (ossl_ssl_stop): Don't free the SSL struct -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/