ruby-changes:44488
From: shugo <ko1@a...>
Date: Sat, 5 Nov 2016 11:23:13 +0900 (JST)
Subject: [ruby-changes:44488] shugo:r56561 (trunk): * cont.c (cont_new): disable optimization if clang's version is
shugo 2016-11-05 11:23:09 +0900 (Sat, 05 Nov 2016) New Revision: 56561 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56561 Log: * cont.c (cont_new): disable optimization if clang's version is 3.8.0. [ruby-core:77894] [Bug #12893] Modified files: trunk/ChangeLog trunk/cont.c Index: ChangeLog =================================================================== --- ChangeLog (revision 56560) +++ ChangeLog (revision 56561) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Nov 5 11:20:57 2016 Shugo Maeda <shugo@r...> + + * 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@r...> * test/ruby/test_file.rb (TestFile#test_stat): fix noatime case. Index: cont.c =================================================================== --- cont.c (revision 56560) +++ cont.c (revision 56561) @@ -471,6 +471,10 @@ cont_new(VALUE klass) https://github.com/ruby/ruby/blob/trunk/cont.c#L471 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(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/