libunwind-devel
[Top][All Lists]
Advanced

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

[Libunwind-devel] [PATCH] Fix inline assembly.


From: Ken Werner
Subject: [Libunwind-devel] [PATCH] Fix inline assembly.
Date: Thu, 30 Jun 2011 13:15:21 +0200

Remove the third colon if the clobber list is not present.

Signed-off-by: Ken Werner <address@hidden>
---
 src/arm/Gresume.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arm/Gresume.c b/src/arm/Gresume.c
index c870f5f..f496e99 100644
--- a/src/arm/Gresume.c
+++ b/src/arm/Gresume.c
@@ -55,7 +55,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, 
void *arg)
        "ldmia %0, {r4-r12, lr}\n"
        "mov sp, r12\n"
        "bx lr\n"
-       : : "r" (regs) :
+       : : "r" (regs)
       );
     }
   else
@@ -87,7 +87,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, 
void *arg)
       asm __volatile__ (
        "mov sp, %0\n"
        "bx %1\n"
-       : : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc) :
+       : : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc)
       );
    }
 #else
-- 
1.7.4.1




reply via email to

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