This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add volatile decl to fix previous commit
authorDavid Mitchell <davem@iabyn.com>
Mon, 31 Oct 2011 12:10:26 +0000 (12:10 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:25:51 +0000 (13:25 +0100)
The previous commit changed the nature of the exp variable in
Perl_re_op_compile(), so it needs to be marked with VOL to work around
setjmp.

regcomp.c

index 8e9d335..2af85f0 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -5026,7 +5026,7 @@ Perl_re_op_compile(pTHX_ SV * const * const patternp, int pat_count,
     struct regexp *r;
     register regexp_internal *ri;
     STRLEN plen;
-    char  *exp;
+    char  * VOL exp;
     char* xend;
     regnode *scan;
     I32 flags;