Hi Peter,

So the issue we have been experiencing with gmp is actually binutils
related. There is a known regression in binutils wherein certain
assembly is not recognized as ARM if it contains extraneous space!

http://lists.gnu.org/archive/html/bug-binutils/2012-11/msg00104.html

I'm copying Nick Clifton, because he'll want to make sure that
ultimately we get the fix into binutils in F19/rawhide. But in the
interim, you can go ahead and apply the following tested patch to gmp
that just removes the extraneous space in udiv.asm for ARM. Once
binutils is fixed, this patch is obviated and harmless.

Jon.
diff -urNp gmp-5.0.5_orig/mpn/arm/udiv.asm gmp-5.0.5/mpn/arm/udiv.asm
--- gmp-5.0.5_orig/mpn/arm/udiv.asm	2012-05-06 07:19:50.000000000 -0400
+++ gmp-5.0.5/mpn/arm/udiv.asm	2013-01-03 21:36:06.780775997 -0500
@@ -48,7 +48,7 @@ L(oop):	divstep(n1,n0,d)
 	teq	r12, #0
 	bne	L(oop)
 
-	str	n1, [ rem_ptr ]		C store remainder
+	str	n1, [rem_ptr]		C store remainder
 	adc	r0, n0, n0		C quotient: add last carry from divstep
 	mov	pc, lr
 
@@ -87,7 +87,7 @@ L(oop2):
 	addcs	n0, n0, #1		C adjust quotient
 
 L(_even_divisor):
-	str	n1, [ rem_ptr ]		C store remainder
+	str	n1, [rem_ptr]		C store remainder
 	mov	r0, n0			C quotient
 	ldmfd	sp!, { r8, pc }
 EPILOGUE(mpn_udiv_qrnnd)
_______________________________________________
arm mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/arm

Reply via email to