diff options
author | Steve Wills <swills@FreeBSD.org> | 2016-12-07 12:47:30 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2016-12-07 12:47:30 +0000 |
commit | 33ba518bad0a8d7836ba0d2c3c258ec4be519970 (patch) | |
tree | d9a90850d0125875f654045ee3ee9b78ab1e0556 /lang/ruby22/files/patch-vm_trace.c | |
parent | Update to the 20161206 snapshot of GCC 5.4.1. (diff) |
lang/ruby22: fix setjmp clobbered variables
PR: 206110
Submitted by: dim
Diffstat (limited to 'lang/ruby22/files/patch-vm_trace.c')
-rw-r--r-- | lang/ruby22/files/patch-vm_trace.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/ruby22/files/patch-vm_trace.c b/lang/ruby22/files/patch-vm_trace.c new file mode 100644 index 000000000000..c049d414e9f8 --- /dev/null +++ b/lang/ruby22/files/patch-vm_trace.c @@ -0,0 +1,11 @@ +--- vm_trace.c.orig 2015-11-08 15:49:09.000000000 +0100 ++++ vm_trace.c 2016-01-10 19:11:46.862754000 +0100 +@@ -390,7 +390,7 @@ rb_suppress_tracing(VALUE (*func)(VALUE) + volatile int raised; + volatile int outer_state; + VALUE result = Qnil; +- rb_thread_t *th = GET_THREAD(); ++ rb_thread_t *volatile th = GET_THREAD(); + int state; + const int tracing = th->trace_arg ? 1 : 0; + rb_trace_arg_t dummy_trace_arg; |