[Vm-dev] [commit][3201] Correct the volatile decls.

commits at squeakvm.org commits at squeakvm.org
Wed Dec 31 22:28:21 UTC 2014


Revision: 3201
Author:   eliot
Date:     2014-12-31 14:28:20 -0800 (Wed, 31 Dec 2014)
Log Message:
-----------
Correct the volatile decls.  C makes the rules, not me.

Modified Paths:
--------------
    trunk/platforms/Cross/plugins/IA32ABI/ppc32abicc.c

Property Changed:
----------------
    trunk/platforms/Cross/plugins/sqPluginsSCCSVersion.h

Modified: trunk/platforms/Cross/plugins/IA32ABI/ppc32abicc.c
===================================================================
--- trunk/platforms/Cross/plugins/IA32ABI/ppc32abicc.c	2014-12-30 23:44:16 UTC (rev 3200)
+++ trunk/platforms/Cross/plugins/IA32ABI/ppc32abicc.c	2014-12-31 22:28:20 UTC (rev 3201)
@@ -132,7 +132,7 @@
 long gpRegCount = 0;
 long fpRegCount = 0;
 volatile long long longReturnValue;
-volatile char *longReturnValueLocation = (char*) &longReturnValue;
+char *volatile longReturnValueLocation = (char*) &longReturnValue;
 volatile double floatReturnValue;
 volatile double *floatReturnValueLocation = &floatReturnValue;
 
@@ -208,7 +208,7 @@
 thunkEntry(void *thunkp, long *stackp)
 {
 	jmp_buf trampoline;
-	volatile CallBackReturnSpec *rs;
+	CallBackReturnSpec * volatile rs;
 
 	if (sizeof(int) != sizeof(rs)) {
 		perror("setjmp cannot return a pointer; reimplement!\n");


Property changes on: trunk/platforms/Cross/plugins/sqPluginsSCCSVersion.h
___________________________________________________________________
Modified: checkindate
   - Fri Dec 12 17:06:09 PST 2014
   + Wed Dec 31 14:28:47 PST 2014



More information about the Vm-dev mailing list