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

ruby-changes:45549

From: nobu <ko1@a...>
Date: Tue, 14 Feb 2017 00:19:18 +0900 (JST)
Subject: [ruby-changes:45549] nobu:r57622 (trunk): thread.c: use ASSUME only on gcc 5 or later

nobu	2017-02-14 00:19:12 +0900 (Tue, 14 Feb 2017)

  New Revision: 57622

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

  Log:
    thread.c: use ASSUME only on gcc 5 or later
    
    * thread.c (rb_fd_no_init): on gcc 4, ASSUME macro affects
      something too much.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 57621)
+++ thread.c	(revision 57622)
@@ -3573,7 +3573,7 @@ rb_fd_select(int n, rb_fdset_t *readfds, https://github.com/ruby/ruby/blob/trunk/thread.c#L3573
     return select(n, r, w, e, timeout);
 }
 
-#if defined __GNUC__ && __GNUC__ >= 4
+#if defined __GNUC__ && __GNUC__ >= 5
 # define rb_fd_no_init(fds) ASSUME(!(fds)->fdset && !(fds)->maxfd)
 #endif
 
@@ -3640,7 +3640,7 @@ rb_fd_set(int fd, rb_fdset_t *set) https://github.com/ruby/ruby/blob/trunk/thread.c#L3640
 #define FD_CLR(i, f)	rb_fd_clr((i), (f))
 #define FD_ISSET(i, f)	rb_fd_isset((i), (f))
 
-#if defined __GNUC__ && __GNUC__ >= 4
+#if defined __GNUC__ && __GNUC__ >= 5
 # define rb_fd_no_init(fds) ASSUME(!(fds)->fdset)
 #endif
 

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

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