From: Steve Peters Date: Mon, 30 Oct 2006 15:53:50 +0000 (+0000) Subject: VOL should be used instead of volatile in the core. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ea43dc8262c63460fee9fcba4164e8b15a45289;p=p5sagit%2Fp5-mst-13.2.git VOL should be used instead of volatile in the core. p4raw-id: //depot/perl@29157 --- diff --git a/op.c b/op.c index 5b0c3fc..0ebaedd 100644 --- a/op.c +++ b/op.c @@ -2118,8 +2118,8 @@ Perl_fold_constants(pTHX_ register OP *o) dVAR; register OP *curop; OP *newop; - volatile I32 type = o->op_type; - volatile SV *sv = NULL; + VOL I32 type = o->op_type; + VOL SV *sv = NULL; int ret = 0; I32 oldscope; OP *old_next; diff --git a/perl.c b/perl.c index 078cf5d..269a18c 100644 --- a/perl.c +++ b/perl.c @@ -539,7 +539,7 @@ int perl_destruct(pTHXx) { dVAR; - volatile int destruct_level; /* 0=none, 1=full, 2=full with checks */ + VOL int destruct_level; /* 0=none, 1=full, 2=full with checks */ HV *hv; #ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP pid_t child; @@ -2589,7 +2589,7 @@ Perl_call_sv(pTHX_ SV *sv, I32 flags) LOGOP myop; /* fake syntax tree node */ UNOP method_op; I32 oldmark; - volatile I32 retval = 0; + VOL I32 retval = 0; I32 oldscope; bool oldcatch = CATCH_GET; int ret; @@ -2716,8 +2716,8 @@ Perl_eval_sv(pTHX_ SV *sv, I32 flags) dVAR; dSP; UNOP myop; /* fake syntax tree node */ - volatile I32 oldmark = SP - PL_stack_base; - volatile I32 retval = 0; + VOL I32 oldmark = SP - PL_stack_base; + VOL I32 retval = 0; int ret; OP* const oldop = PL_op; dJMPENV;