summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-11 22:47:30 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-11 22:47:30 +0000
commit41dab62222a24c1ca1d2bf370afbfc02cd5e0d16 (patch)
tree932cf2b86a301c857a47744865f9ab8af625e2fd /cont.c
parentbcfbc2bb1f7f60704ebfa9c2305a76e1a2714946 (diff)
merge revision(s) 56561: [Backport #12893]
* 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/branches/ruby_2_2@56730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 28bc741e59..bfa37d1a87 100644
--- a/cont.c
+++ b/cont.c
@@ -479,6 +479,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();