From 33ba518bad0a8d7836ba0d2c3c258ec4be519970 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Wed, 7 Dec 2016 12:47:30 +0000 Subject: lang/ruby22: fix setjmp clobbered variables PR: 206110 Submitted by: dim --- lang/ruby22/files/patch-eval.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lang/ruby22/files/patch-eval.c (limited to 'lang/ruby22/files/patch-eval.c') diff --git a/lang/ruby22/files/patch-eval.c b/lang/ruby22/files/patch-eval.c new file mode 100644 index 000000000000..c9e410810785 --- /dev/null +++ b/lang/ruby22/files/patch-eval.c @@ -0,0 +1,20 @@ +--- eval.c.orig 2014-12-09 02:16:27.000000000 +0100 ++++ eval.c 2016-01-10 19:10:59.326340000 +0100 +@@ -797,7 +797,7 @@ rb_rescue2(VALUE (* b_proc) (ANYARGS), V + { + int state; + rb_thread_t *th = GET_THREAD(); +- rb_control_frame_t *cfp = th->cfp; ++ rb_control_frame_t *volatile cfp = th->cfp; + volatile VALUE result = Qfalse; + volatile VALUE e_info = th->errinfo; + va_list args; +@@ -863,7 +863,7 @@ rb_protect(VALUE (* proc) (VALUE), VALUE + volatile VALUE result = Qnil; + volatile int status; + rb_thread_t *th = GET_THREAD(); +- rb_control_frame_t *cfp = th->cfp; ++ rb_control_frame_t *volatile cfp = th->cfp; + struct rb_vm_protect_tag protect_tag; + rb_jmpbuf_t org_jmpbuf; + -- cgit v1.2.3