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

ruby-changes:22211

From: naruse <ko1@a...>
Date: Tue, 10 Jan 2012 15:43:24 +0900 (JST)
Subject: [ruby-changes:22211] naruse:r34260 (trunk): * vm.c (vm_exec): refix r34162; suppress warning and add description.

naruse	2012-01-10 15:43:13 +0900 (Tue, 10 Jan 2012)

  New Revision: 34260

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

  Log:
    * vm.c (vm_exec): refix r34162; suppress warning and add description.

  Modified files:
    trunk/ChangeLog
    trunk/vm.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34259)
+++ ChangeLog	(revision 34260)
@@ -1,3 +1,7 @@
+Tue Jan 10 15:31:55 2012  NARUSE, Yui  <naruse@r...>
+
+	* vm.c (vm_exec): refix r34162; suppress warning and add description.
+
 Tue Jan 10 15:13:58 2012  NARUSE, Yui  <naruse@r...>
 
 	* ext/readline/readline.c (readline_attempted_completion_function):
Index: vm.c
===================================================================
--- vm.c	(revision 34259)
+++ vm.c	(revision 34260)
@@ -1216,8 +1216,8 @@
       vm_loop_start:
 	result = vm_exec_core(th, initial);
 	if ((state = th->state) != 0) {
-#ifdef __llvm__
-	    rb_thread_t t = *th;
+#ifdef __llvm__ /* LLVM optimization guard for TestEnumerator#test_nested_itaration */
+	    (void)__extension__({rb_thread_t t = *th; t;});
 #endif
 	    err = result;
 	    th->state = 0;

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

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