blob: 6a6f467d7b39c4fe818e76325eca78a4eb3bd75e [file] [log] [blame]
Thomas Petazzoni4c0fdc62017-05-08 21:45:47 +02001From d858ce52d1971cb4e8500b0ebc0472fdae4686ec Mon Sep 17 00:00:00 2001
2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3Date: Sun, 7 May 2017 23:12:04 +0200
4Subject: [PATCH] mpn/arm/udiv.asm: workaround binutils bug #14887
5
6Old binutils versions are affected by bug #14887,
7https://sourceware.org/bugzilla/show_bug.cgi?id=14887, which causes a
8build failure when a register specification is surrounded by
9whitespaces. Removing those whitespaces works around the issue.
10
11Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12---
13 mpn/arm/udiv.asm | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/mpn/arm/udiv.asm b/mpn/arm/udiv.asm
17index 25197a6..ed11eb3 100644
18--- a/mpn/arm/udiv.asm
19+++ b/mpn/arm/udiv.asm
20@@ -50,7 +50,7 @@ L(oop): divstep(n1,n0,d)
21 teq r12, #0
22 bne L(oop)
23
24- str n1, [ rem_ptr ] C store remainder
25+ str n1, [rem_ptr] C store remainder
26 adc r0, n0, n0 C quotient: add last carry from divstep
27 mov pc, lr
28
29@@ -89,7 +89,7 @@ L(oop2):
30 addcs n0, n0, #1 C adjust quotient
31
32 L(_even_divisor):
33- str n1, [ rem_ptr ] C store remainder
34+ str n1, [rem_ptr] C store remainder
35 mov r0, n0 C quotient
36 ldmfd sp!, { r8, pc }
37 EPILOGUE(mpn_udiv_qrnnd)
38--
392.7.4
40