mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_insnhelper.c: missing static to inline
* vm_insnhelper.c (vm_getivar): add missing static to inline, otherwise external symbol is referred and link fails when optimization is disabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3de227bdcb
commit
ea1cff3b25
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ Sat Apr 23 18:01:21 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|||
vm1_ivar* 1.189
|
||||
vm1_ivar_set* 1.024
|
||||
|
||||
Note tha `inline`'s meaning is different between old GCC
|
||||
Note the `inline`'s meaning is different between old GCC
|
||||
and C99. Old GCC's inline means C99's extern inline.
|
||||
https://gcc.gnu.org/onlinedocs/gcc/Inline.html
|
||||
Since Ruby specify -std=iso9899:1999, it works like C99.
|
||||
|
|
|
@ -774,7 +774,7 @@ vm_search_const_defined_class(const VALUE cbase, ID id)
|
|||
#define USE_IC_FOR_IVAR 1
|
||||
#endif
|
||||
|
||||
inline VALUE
|
||||
static inline VALUE
|
||||
vm_getivar(VALUE obj, ID id, IC ic, struct rb_call_cache *cc, int is_attr)
|
||||
{
|
||||
#if USE_IC_FOR_IVAR
|
||||
|
|
Loading…
Reference in a new issue