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

ruby-changes:32459

From: nobu <ko1@a...>
Date: Thu, 9 Jan 2014 20:46:34 +0900 (JST)
Subject: [ruby-changes:32459] nobu:r44538 (trunk): configure.in: use SSE2

nobu	2014-01-09 20:46:26 +0900 (Thu, 09 Jan 2014)

  New Revision: 44538

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

  Log:
    configure.in: use SSE2
    
    * configure.in: use SSE2 instructions to drop unexpected precisions on
      other than mingw.  [ruby-core:59472] [Bug #8358]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 44537)
+++ configure.in	(revision 44538)
@@ -802,7 +802,6 @@ if test "$GCC" = yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L802
       # various  headers.  Most frequent  situation is  the use  of //
       # comments.   We  bypass  ANSI   C  mode  for  them.   Otherwise
       # extension libs cannot include those headers.
-      RUBY_TRY_CFLAGS(-msse2 -mfpmath=sse, [RUBY_APPEND_OPTION(XCFLAGS, -msse2 -mfpmath=sse)])
     ],
     [cygwin*|darwin*|netbsd*], [
       # need lgamma_r(), finite()
@@ -858,6 +857,14 @@ if test "$GCC" = yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L857
     for oflag in -fno-fast-math; do
 	RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)])
     done
+    AS_CASE(["$target"],
+	[*-darwin*], [
+	    # doesn't seem necessary on Mac OS X
+	],
+	[i[4-6]86], [
+	    RUBY_TRY_CFLAGS(-msse2 -mfpmath=sse, [RUBY_APPEND_OPTION(XCFLAGS, -msse2 -mfpmath=sse)])
+	]
+    )
 fi
 
 AC_ARG_WITH(opt-dir,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44537)
+++ ChangeLog	(revision 44538)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jan  9 20:46:22 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in: use SSE2 instructions to drop unexpected precisions on
+	  other than mingw.  [ruby-core:59472] [Bug #8358]
+
 Thu Jan  9 20:31:10 2014  NAKAMURA Usaku  <usa@r...>
 
 	* hash.c (rb_objid_hash): should return `long'.  brushup r44534.

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

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