mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: use SSE2
* configure.in: use SSE2 instructions to drop unexpected precisions on other than mingw. [ruby-core:59472] [Bug #8358] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ac2864a871
commit
40967a5c0b
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Jan 9 20:46:22 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Thu Jan 9 20:31:10 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* hash.c (rb_objid_hash): should return `long'. brushup r44534.
|
* hash.c (rb_objid_hash): should return `long'. brushup r44534.
|
||||||
|
|
|
@ -802,7 +802,6 @@ if test "$GCC" = yes; then
|
||||||
# various headers. Most frequent situation is the use of //
|
# various headers. Most frequent situation is the use of //
|
||||||
# comments. We bypass ANSI C mode for them. Otherwise
|
# comments. We bypass ANSI C mode for them. Otherwise
|
||||||
# extension libs cannot include those headers.
|
# extension libs cannot include those headers.
|
||||||
RUBY_TRY_CFLAGS(-msse2 -mfpmath=sse, [RUBY_APPEND_OPTION(XCFLAGS, -msse2 -mfpmath=sse)])
|
|
||||||
],
|
],
|
||||||
[cygwin*|darwin*|netbsd*], [
|
[cygwin*|darwin*|netbsd*], [
|
||||||
# need lgamma_r(), finite()
|
# need lgamma_r(), finite()
|
||||||
|
@ -858,6 +857,14 @@ if test "$GCC" = yes; then
|
||||||
for oflag in -fno-fast-math; do
|
for oflag in -fno-fast-math; do
|
||||||
RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)])
|
RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)])
|
||||||
done
|
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
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH(opt-dir,
|
AC_ARG_WITH(opt-dir,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue