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

ruby-changes:39146

From: nobu <ko1@a...>
Date: Mon, 13 Jul 2015 19:52:18 +0900 (JST)
Subject: [ruby-changes:39146] nobu:r51227 (trunk): remove needless volatile

nobu	2015-07-13 19:52:11 +0900 (Mon, 13 Jul 2015)

  New Revision: 51227

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

  Log:
    remove needless volatile
    
    * array.c (rb_ary_each): remove needless volatile for outdated
      clang 3.0.  revert r32201.
    
    * cont.c (cont_capture): ditto.

  Modified files:
    trunk/array.c
    trunk/cont.c
Index: array.c
===================================================================
--- array.c	(revision 51226)
+++ array.c	(revision 51227)
@@ -1811,10 +1811,9 @@ ary_enum_length(VALUE ary, VALUE args, V https://github.com/ruby/ruby/blob/trunk/array.c#L1811
  */
 
 VALUE
-rb_ary_each(VALUE array)
+rb_ary_each(VALUE ary)
 {
     long i;
-    volatile VALUE ary = array;
 
     RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length);
     for (i=0; i<RARRAY_LEN(ary); i++) {
Index: cont.c
===================================================================
--- cont.c	(revision 51226)
+++ cont.c	(revision 51227)
@@ -519,7 +519,7 @@ cont_capture(volatile int *stat) https://github.com/ruby/ruby/blob/trunk/cont.c#L519
     }
 
     if (ruby_setjmp(cont->jmpbuf)) {
-	volatile VALUE value;
+	VALUE value;
 
 	VAR_INITIALIZED(cont);
 	value = cont->value;

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

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