Module Name:    src
Committed By:   mrg
Date:           Sat Jul  9 15:00:09 UTC 2011

Modified Files:
        src/external/lgpl3/gmp/dist/mpn/arm: invert_limb.asm

Log Message:
hint from scw: "bx" is a thumb instruction.  add code to work with
non-thumb cpus.  now /usr/bin/cc on my shark actually runs properly
without crashing (but very very slowly.)


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm
diff -u src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm:1.1.1.1 src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm:1.2
--- src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm:1.1.1.1	Mon Jun 20 05:54:43 2011
+++ src/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm	Sat Jul  9 15:00:08 2011
@@ -42,7 +42,10 @@
 	adds	r1, r3, r0
 	adc	r12, r12, r0
 	rsb	r0, r12, r2
-	bx	lr
+ifdef(`ARM_THUMB_MODE',
+`	bx	lr
+',`	mov	pc, lr
+')
 
 	ALIGN(4)
 L(4):	.word	approx_tab-8-512-L(2)

Reply via email to