aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
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 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();