summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-10-30 15:53:50 +0000
committerSteve Peters <steve@fisharerojo.org>2006-10-30 15:53:50 +0000
commit8ea43dc8262c63460fee9fcba4164e8b15a45289 (patch)
tree39d612bece193c5b5107274a67c4cf45efbbba2f
parent9b5be9b5aa498a302ab752a0d1cdb335a620ede2 (diff)
downloadperl-8ea43dc8262c63460fee9fcba4164e8b15a45289.tar.gz
VOL should be used instead of volatile in the core.
p4raw-id: //depot/perl@29157
-rw-r--r--op.c4
-rw-r--r--perl.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/op.c b/op.c
index 5b0c3fc31f..0ebaedd43b 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 078cf5de7d..269a18c397 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;