From b230d20ec4d4b34dbbdfe5830fee8095d41af044 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 2 Apr 2014 10:57:45 +0000 Subject: 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 --- eval_intern.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eval_intern.h') diff --git a/eval_intern.h b/eval_intern.h index 69e9134dbb..f81f922269 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -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); } /* -- cgit v1.2.3