VOL should be used instead of volatile in the core.
authorSteve Peters <steve@fisharerojo.org>
Mon, 30 Oct 2006 15:53:50 +0000 (15:53 +0000)
committerSteve Peters <steve@fisharerojo.org>
Mon, 30 Oct 2006 15:53:50 +0000 (15:53 +0000)
p4raw-id: //depot/perl@29157

op.c
perl.c

diff --git a/op.c b/op.c
index 5b0c3fc..0ebaedd 100644 (file)
--- 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 (file)
--- 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;