зеркало из https://github.com/github/ruby.git
eval_intern.h: __builtin_longjmp requires literal 1 on gcc 4.9
* eval_intern.h (rb_threadptr_tag_jump): gcc 4.9 disallows other than literal 1 as the second argument of __builtin_longjmp(). [ruby-core:61800] [Bug #9692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4ad0071dc8
Коммит
b230d20ec4
|
@ -141,7 +141,8 @@ NORETURN(static inline void rb_threadptr_tag_jump(rb_thread_t *, int));
|
|||
static inline void
|
||||
rb_threadptr_tag_jump(rb_thread_t *th, int st)
|
||||
{
|
||||
ruby_longjmp(th->tag->buf, (th->state = st));
|
||||
th->state = st;
|
||||
ruby_longjmp(th->tag->buf, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче