Browse Source

Fix Thumb-2 setjmp.

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@codesourcery.com>
Joseph Myers 15 years ago
parent
commit
77c075f4ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/arm/setjmp.S

+ 1 - 1
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 */