dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 71286bbfa6b06a15aa797ec336b7eb613659830f
Date: Sun, 26 Dec 2010 20:17:07 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  71286bbfa6b06a15aa797ec336b7eb613659830f (commit)
      from  e288c014fa5805212ea5ebf53e46d85084bc6de4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=71286bbfa6b06a15aa797ec336b7eb613659830f

commit 71286bbfa6b06a15aa797ec336b7eb613659830f
Author: Klaus Treichel <address@hidden>
Date:   Sun Dec 26 21:16:38 2010 +0100

    Add missed early clobber modifiers to interlocked functions for ppc and
    do some reformatting.

diff --git a/ChangeLog b/ChangeLog
index 1533670..0deb693 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,13 @@
        * engine/cvm.c: Remove the volatile from the volatile interpreter
        variable configuration for gcc 4.x and arm and ppc.
 
+       * engine/cvm_ptr.c: Do some reformatting.
+
+       * engine/cvmc_branch.c: Do some reformatting.
+
+       * support/interlocked_ppc.h: Add an early clobber to the output of the
+       interlocked     Add, Sub And and Or functions.
+
 2010-12-25  Klaus Treichel  <address@hidden>
 
        * engine/cvm_config.h: Move configuration of interpreter loop variables
diff --git a/engine/cvm_ptr.c b/engine/cvm_ptr.c
index 06a871f..0e1cba5 100644
--- a/engine/cvm_ptr.c
+++ b/engine/cvm_ptr.c
@@ -2375,7 +2375,7 @@ VMCASE(COP_CASTCLASS):
        classInfo = CVM_ARG_PTR(ILClass *);
        if(!stacktop[-1].ptrValue ||
           CanCastClass(ILProgramItem_Image(method),
-                                   GetObjectClass(stacktop[-1].ptrValue), 
classInfo))
+                                       GetObjectClass(stacktop[-1].ptrValue), 
classInfo))
        {
                MODIFY_PC_AND_STACK(CVM_LEN_PTR, 0);
        }
diff --git a/engine/cvmc_branch.c b/engine/cvmc_branch.c
index 4d5f80a..e7e69eb 100644
--- a/engine/cvmc_branch.c
+++ b/engine/cvmc_branch.c
@@ -225,7 +225,7 @@ static void OutputCondBranch(ILCoder *coder, int iopcode, 
int lopcode,
  * Output a branch instruction using a CVM coder.
  */
 static void CVMCoder_Branch(ILCoder *coder, int opcode, ILUInt32 dest,
-                                                   ILEngineType type1, 
ILEngineType type2)
+                                                       ILEngineType type1, 
ILEngineType type2)
 {
        /* Determine what form of branch to use */
        switch(opcode)
diff --git a/support/interlocked_ppc.h b/support/interlocked_ppc.h
index 642c1fd..1d2fd09 100644
--- a/support/interlocked_ppc.h
+++ b/support/interlocked_ppc.h
@@ -532,7 +532,7 @@ static IL_INLINE ILInt32 ILInterlockedAddI4(volatile 
ILInt32 *dest,
                "\tadd          %0, %0, %3\n"
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "cc"
        );
@@ -554,7 +554,7 @@ static IL_INLINE ILInt32 
ILInterlockedAddI4_Acquire(volatile ILInt32 *dest,
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
                _IL_INTERLOCKED_PPC_LWSYNC
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -576,7 +576,7 @@ static IL_INLINE ILInt32 
ILInterlockedAddI4_Release(volatile ILInt32 *dest,
                "\tadd          %0, %0, %3\n"
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -599,7 +599,7 @@ static IL_INLINE ILInt32 ILInterlockedAddI4_Full(volatile 
ILInt32 *dest,
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
                _IL_INTERLOCKED_PPC_LWSYNC
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -623,7 +623,7 @@ static IL_INLINE ILInt32 ILInterlockedSubI4(volatile 
ILInt32 *dest,
                "\tsubf         %0, %3, %0\n"
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "cc"
        );
@@ -645,7 +645,7 @@ static IL_INLINE ILInt32 
ILInterlockedSubI4_Acquire(volatile ILInt32 *dest,
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
                _IL_INTERLOCKED_PPC_LWSYNC
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -667,7 +667,7 @@ static IL_INLINE ILInt32 
ILInterlockedSubI4_Release(volatile ILInt32 *dest,
                "\tsubf         %0, %3, %0\n"
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -690,7 +690,7 @@ static IL_INLINE ILInt32 ILInterlockedSubI4_Full(volatile 
ILInt32 *dest,
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
                _IL_INTERLOCKED_PPC_LWSYNC
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -714,7 +714,7 @@ static IL_INLINE void ILInterlockedAndU4(volatile ILUInt32 
*dest,
                "\tand          %0, %0, %3\n"
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "cc"
        );
@@ -735,7 +735,7 @@ static IL_INLINE void ILInterlockedAndU4_Full(volatile 
ILUInt32 *dest,
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
                _IL_INTERLOCKED_PPC_LWSYNC
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );
@@ -757,7 +757,7 @@ static IL_INLINE void ILInterlockedOrU4(volatile ILUInt32 
*dest,
                "\tor           %0, %0, %3\n"
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "cc"
        );
@@ -778,7 +778,7 @@ static IL_INLINE void ILInterlockedOrU4_Full(volatile 
ILUInt32 *dest,
                "\tstwcx.       %0, 0, %2\n"
                "\tbne-         1b\n"
                _IL_INTERLOCKED_PPC_LWSYNC
-               : "=r" (retval), "=m" (*dest)
+               : "=&r" (retval), "=m" (*dest)
                : "r" (dest), "r" (value)
                : "memory", "cc"
        );

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    7 +++++++
 engine/cvm_ptr.c          |    2 +-
 engine/cvmc_branch.c      |    2 +-
 support/interlocked_ppc.h |   24 ++++++++++++------------
 4 files changed, 21 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]