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

ruby-changes:31168

From: nobu <ko1@a...>
Date: Fri, 11 Oct 2013 08:52:46 +0900 (JST)
Subject: [ruby-changes:31168] nobu:r43247 (trunk): vm_trace.c: suppress warnings

nobu	2013-10-11 08:52:40 +0900 (Fri, 11 Oct 2013)

  New Revision: 43247

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

  Log:
    vm_trace.c: suppress warnings
    
    * vm_trace.c (rb_postponed_job_flush): suppress clobbered variable
      warnings on some gcc.

  Modified files:
    trunk/vm_trace.c
Index: vm_trace.c
===================================================================
--- vm_trace.c	(revision 43246)
+++ vm_trace.c	(revision 43247)
@@ -1453,16 +1453,16 @@ rb_postponed_job_flush(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/vm_trace.c#L1453
     int index = vm->postponed_job_index, old_index = index;
 
     save.thread = cur_th;
+    save.index = index;
     save.interrupt_mask = cur_th->interrupt_mask;
 
     cur_th->interrupt_mask |= POSTPONED_JOB_INTERRUPT_MASK;
     TH_PUSH_TAG(cur_th);
-    if (EXEC_TAG()) {
-	/* ignore all jumps, just continue */
-	cur_th = save.thread;
-	index = save.index;
-	old_index = save.old_index;
-    }
+    EXEC_TAG();
+    /* ignore all jumps, just continue */
+    cur_th = save.thread;
+    index = save.index;
+    old_index = save.old_index;
     while (index > 0) {
 	rb_postponed_job_t *pjob = &vm->postponed_job_buffer[--index];
 	void *data = pjob->data;

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

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