[前][次][番号順一覧][スレッド一覧]

ruby-changes:42655

From: nobu <ko1@a...>
Date: Sat, 23 Apr 2016 19:30:22 +0900 (JST)
Subject: [ruby-changes:42655] nobu:r54729 (trunk): vm_insnhelper.c: missing static to inline

nobu	2016-04-23 20:26:59 +0900 (Sat, 23 Apr 2016)

  New Revision: 54729

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54729

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 54728)
+++ vm_insnhelper.c	(revision 54729)
@@ -774,7 +774,7 @@ vm_search_const_defined_class(const VALU https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L774
 #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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54728)
+++ ChangeLog	(revision 54729)
@@ -13,7 +13,7 @@ Sat Apr 23 18:01:21 2016  NARUSE, Yui  < https://github.com/ruby/ruby/blob/trunk/ChangeLog#L13
 	  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.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]