[git commit] Fix Thumb-2 setjmp.

Joseph Myers joseph at codesourcery.com
Tue Jun 30 21:20:26 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=42ec8700ec6ad971c9627859df3dc342a82d3cac
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl


Many Thumb-2 instructions cannot use sp or pc as operands, and the
assembler now diagnoses these.  setjmp had one such instruction, movs;
this patch changes it to mov.

Signed-off-by: Joseph Myers <joseph at codesourcery.com>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 libc/sysdeps/linux/arm/setjmp.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libc/sysdeps/linux/arm/setjmp.S b/libc/sysdeps/linux/arm/setjmp.S
index 2df7d55..76d1790 100644
--- a/libc/sysdeps/linux/arm/setjmp.S
+++ b/libc/sysdeps/linux/arm/setjmp.S
@@ -47,7 +47,7 @@ __sigsetjmp:
 	mov	ip, r0
 #if defined(__thumb2__)
 	stmia	ip!, {v1-v6, sl, fp}
-	movs	r2, sp
+	mov	r2, sp
 	stmia	ip!, {r2, lr}
 #else
 	/* Save registers */
-- 
1.6.3.3


More information about the uClibc-cvs mailing list