diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 00:13:51 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 00:13:51 +0000 |
commit | c83ad9aaedf690bcae947e27a09a217c2948e75e (patch) | |
tree | 73d05644d84108902be6a743f486c623a03d6318 /configure.in | |
parent | 22ce47745b45b1a1230ba1b6ab6cb3815cf85bad (diff) |
merge revision(s) 44474,44538,44539,44890,44896: [Backport #9495]
* configure.in: use SSE2 instructions for drop unexpected
precisions. [ruby-core:54738] [Bug #8358]
* configure.in: use SSE2 instructions to drop unexpected precisions on
other than mingw. [ruby-core:59472] [Bug #8358]
* configure.in: -mstackrealign is necessary for -msse2 working.
[ruby-core:54716] [Bug #8349]
* configure.in: -mstackrealign is necessary for -msse2 working.
[ruby-core:54716] [Bug #8349]
* configure.in: add qouting brackets and append wildcard for the
rest after target_cpu, to properly detect platform for SSE2
instructions. [ruby-core:60576] [Bug #8358]
* configure.in: Fix compilation error.
https://bugs.ruby-lang.org/issues/8358#note-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 84f176dd94..95ab2723a4 100644 --- a/configure.in +++ b/configure.in @@ -856,6 +856,22 @@ if test "$GCC" = yes; then 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) + ]) + AS_CASE(["$XCFLAGS"], + [[*-msse2*]], [ + RUBY_TRY_CFLAGS(-mstackrealign, [ + RUBY_APPEND_OPTION(XCFLAGS, -mstackrealign) + ]) + ]) + ] + ) fi AC_ARG_WITH(opt-dir, |