freebsd-ports/lang/ruby23/files/patch-eval_error.c
Steve Wills ab2bdcb18b lang/ruby23: fix setjmp clobbered variables
PR:		206111
Submitted by:	dim
2016-12-07 16:08:54 +00:00

15 lines
555 B
C

--- eval_error.c.orig 2015-10-31 02:22:51.000000000 +0100
+++ eval_error.c 2016-01-10 19:24:26.104099000 +0100
@@ -80,9 +80,9 @@ static void
error_print(void)
{
volatile VALUE errat = Qundef;
- rb_thread_t *th = GET_THREAD();
- VALUE errinfo = th->errinfo;
- int raised_flag = th->raised_flag;
+ rb_thread_t *volatile th = GET_THREAD();
+ volatile VALUE errinfo = th->errinfo;
+ volatile int raised_flag = th->raised_flag;
volatile VALUE eclass = Qundef, e = Qundef;
const char *volatile einfo;
volatile long elen;