diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-30 20:02:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-30 20:02:34 +0000 |
commit | 7d45d3f84d99b1485092b36e62e5275211987f41 (patch) | |
tree | 69edb04f96bf8f586407c352cca024089730b53d | |
parent | 52af87a5a75f1d5bba26b8884cfa6c466ffee680 (diff) | |
download | ruby-7d45d3f84d99b1485092b36e62e5275211987f41.tar.gz |
* configure.in (optflags): disable unsafe optimizations.
[ruby-core:44679][Bug #6370]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 8 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Tue May 1 05:02:30 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (optflags): disable unsafe optimizations. + [ruby-core:44679][Bug #6370] + Mon Apr 30 23:36:49 2012 Tanaka Akira <akr@fsij.org> * lib/fileutils.rb (copy_metadata): use File.lchown and File.lchmod to @@ -8,11 +13,6 @@ Mon Apr 30 23:05:53 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com> * test/ruby/test_continuation.rb (tracing_with_set_trace_func): don't call Continuation from other threads. [ruby-dev:45596] [Bug #6382] -Mon Apr 30 21:09:06 2012 Nobuyoshi Nakada <nobu@ruby-lang.org> - - * configure.in (optflags): disable unsafe optimizations. - [ruby-core:44679][Bug #6370] - Mon Apr 30 20:10:04 2012 Tanaka Akira <akr@fsij.org> * ext/zlib/extconf.rb: detect z_crc_t type which will be defined diff --git a/configure.in b/configure.in index e71aeb3c03..1e1b2ac9fc 100644 --- a/configure.in +++ b/configure.in @@ -549,7 +549,9 @@ if test "$GCC" = yes; then ]) # disable fast-math - RUBY_TRY_CFLAGS(-fno-fast-math, [RUBY_APPEND_OPTION(optflags, $oflag)]) + for oflag in -fno-fast-math; do + RUBY_TRY_CFLAGS(oflag, [RUBY_APPEND_OPTION(optflags, $oflag)]) + done fi test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" |