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

ruby-changes:42918

From: nobu <ko1@a...>
Date: Fri, 13 May 2016 08:46:48 +0900 (JST)
Subject: [ruby-changes:42918] nobu:r54992 (trunk): drop FreeBSD < 4 support

nobu	2016-05-13 08:46:43 +0900 (Fri, 13 May 2016)

  New Revision: 54992

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

  Log:
    drop FreeBSD < 4 support
    
    * NEWS: drop FreeBSD < 4 support.
      The most recent version affected by this is 3.5 and was released
      in 2000.
      https://www.freebsd.org/releases/3.5R/announce.html
      https://en.wikipedia.org/wiki/History_of_FreeBSD#Version_history

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/numeric.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54991)
+++ ChangeLog	(revision 54992)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May 13 08:46:42 2016  cremno  <cremno@m...>
+
+	* NEWS: drop FreeBSD < 4 support.
+	  The most recent version affected by this is 3.5 and was released
+	  in 2000.
+	  https://www.freebsd.org/releases/3.5R/announce.html
+	  https://en.wikipedia.org/wiki/History_of_FreeBSD#Version_history
+
 Fri May 13 03:12:09 2016  NARUSE, Yui  <naruse@r...>
 
 	* include/ruby/defines.h (GCC_VERSION_SINCE): moved from internal.h.
Index: NEWS
===================================================================
--- NEWS	(revision 54991)
+++ NEWS	(revision 54992)
@@ -108,6 +108,8 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L108
 
 === Supported platform changes
 
+* FreeBSD < 4 is no longer supported
+
 === Implementation improvements
 
 * In some condition, `[x, y].max` and `[x, y].min` are optimized
Index: numeric.c
===================================================================
--- numeric.c	(revision 54991)
+++ numeric.c	(revision 54992)
@@ -16,10 +16,6 @@ https://github.com/ruby/ruby/blob/trunk/numeric.c#L16
 #include <math.h>
 #include <stdio.h>
 
-#if defined(__FreeBSD__) && __FreeBSD__ < 4
-#include <floatingpoint.h>
-#endif
-
 #ifdef HAVE_FLOAT_H
 #include <float.h>
 #endif
@@ -4871,10 +4867,7 @@ Init_Numeric(void) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4867
 #undef rb_intern
 #define rb_intern(str) rb_intern_const(str)
 
-#if defined(__FreeBSD__) && __FreeBSD__ < 4
-    /* allow divide by zero -- Inf */
-    fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV|FP_X_OFL));
-#elif defined(_UNICOSMP)
+#ifdef _UNICOSMP
     /* Turn off floating point exceptions for divide by zero, etc. */
     _set_Creg(0, 0);
 #endif

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

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