aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-05 02:23:09 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-05 02:23:09 +0000
commit7eaa8ecc20cdcb1da812443180b986c851467795 (patch)
tree9f28c200cae9d0d85271d2fb163a1b1fdbaa6e8b
parent9f4717c89c513f70e0b2da34eb5a785530cc784c (diff)
downloadruby-7eaa8ecc20cdcb1da812443180b986c851467795.tar.gz
* cont.c (cont_new): disable optimization if clang's version is
3.8.0. [ruby-core:77894] [Bug #12893] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--cont.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bb953330a0..2300af62e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 5 11:20:57 2016 Shugo Maeda <shugo@ruby-lang.org>
+
+ * cont.c (cont_new): disable optimization if clang's version is
+ 3.8.0. [ruby-core:77894] [Bug #12893]
+
Sat Nov 5 10:07:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/ruby/test_file.rb (TestFile#test_stat): fix noatime case.
diff --git a/cont.c b/cont.c
index 8119b5cb23..85d376653e 100644
--- a/cont.c
+++ b/cont.c
@@ -471,6 +471,10 @@ cont_new(VALUE klass)
static VALUE
cont_capture(volatile int *stat)
+#if defined(__clang__) && \
+ __clang_major__ == 3 && __clang_minor__ == 8 && __clang_patch__ == 0
+__attribute__ ((optnone))
+#endif
{
rb_context_t *cont;
rb_thread_t *th = GET_THREAD();