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:
nobu 2014-04-02 10:57:45 +00:00
Родитель 4ad0071dc8
Коммит b230d20ec4
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
/*