Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gmp: fix target build for ARM thumb
@ 2014-04-04 21:49 Gustavo Zacarias
  2014-04-05 12:44 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2014-04-04 21:49 UTC (permalink / raw)
  To: buildroot

Pull upstream hg changeset c56ea318eb64 and 676e2d0f0e4d to fix ARM
build breakage when compiling in thumb mode. Fixes:
http://autobuild.buildroot.net/results/f44/f447ce933ad8dd975b17aeda03cc46b0cace0b03/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 .../gmp-01-arm-asm-conditional-on-no-thumb-1.patch  | 21 +++++++++++++++++++++
 .../gmp-02-arm-asm-conditional-on-no-thumb-2.patch  | 21 +++++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 package/gmp/gmp-01-arm-asm-conditional-on-no-thumb-1.patch
 create mode 100644 package/gmp/gmp-02-arm-asm-conditional-on-no-thumb-2.patch

diff --git a/package/gmp/gmp-01-arm-asm-conditional-on-no-thumb-1.patch b/package/gmp/gmp-01-arm-asm-conditional-on-no-thumb-1.patch
new file mode 100644
index 0000000..eb678b0
--- /dev/null
+++ b/package/gmp/gmp-01-arm-asm-conditional-on-no-thumb-1.patch
@@ -0,0 +1,21 @@
+
+# HG changeset patch
+# User Torbjorn Granlund <tege@gmplib.org>
+# Date 1396035313 -3600
+# Node ID c56ea318eb6435bdd28dbfef657b2fe372134f1f
+# Parent  c6fe20ab62acc266ff5ad3629bef447bc43dcd1b
+Conditionalise ARM asm on !__thumb__.
+
+diff -r c6fe20ab62ac -r c56ea318eb64 mpn/generic/mod_1_1.c
+--- a/mpn/generic/mod_1_1.c	Wed Mar 26 12:58:33 2014 +0100
++++ b/mpn/generic/mod_1_1.c	Fri Mar 28 20:35:13 2014 +0100
+@@ -129,7 +129,7 @@
+ 	     "%2" ((UDItype)(a0)), "r" ((UDItype)(b0)) __CLOBBER_CC)
+ #endif
+ 
+-#if defined (__arm__) && W_TYPE_SIZE == 32
++#if defined (__arm__) && !defined (__thumb__) && W_TYPE_SIZE == 32
+ #define add_mssaaaa(m, sh, sl, ah, al, bh, bl)				\
+   __asm__ (  "adds	%2, %5, %6\n\t"					\
+ 	     "adcs	%1, %3, %4\n\t"					\
+
diff --git a/package/gmp/gmp-02-arm-asm-conditional-on-no-thumb-2.patch b/package/gmp/gmp-02-arm-asm-conditional-on-no-thumb-2.patch
new file mode 100644
index 0000000..666cf58
--- /dev/null
+++ b/package/gmp/gmp-02-arm-asm-conditional-on-no-thumb-2.patch
@@ -0,0 +1,21 @@
+
+# HG changeset patch
+# User Torbjorn Granlund <tege@gmplib.org>
+# Date 1396602422 -7200
+# Node ID 676e2d0f0e4dd301a7066079d2c9326c25c34a40
+# Parent  0194a75b56b21a9196626430af86c5bd9110c42d
+Conditionalise ARM asm on !__thumb__.
+
+diff -r 0194a75b56b2 -r 676e2d0f0e4d mpn/generic/div_qr_1n_pi1.c
+--- a/mpn/generic/div_qr_1n_pi1.c	Thu Apr 03 23:58:51 2014 +0200
++++ b/mpn/generic/div_qr_1n_pi1.c	Fri Apr 04 11:07:02 2014 +0200
+@@ -130,7 +130,7 @@
+ 	     "%2" ((UDItype)(a0)), "r" ((UDItype)(b0)) __CLOBBER_CC)
+ #endif
+ 
+-#if defined (__arm__) && W_TYPE_SIZE == 32
++#if defined (__arm__) && !defined (__thumb__) && W_TYPE_SIZE == 32
+ #define add_mssaaaa(m, sh, sl, ah, al, bh, bl)				\
+   __asm__ (  "adds	%2, %5, %6\n\t"					\
+ 	     "adcs	%1, %3, %4\n\t"					\
+
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] gmp: fix target build for ARM thumb
  2014-04-04 21:49 [Buildroot] [PATCH] gmp: fix target build for ARM thumb Gustavo Zacarias
@ 2014-04-05 12:44 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-04-05 12:44 UTC (permalink / raw)
  To: buildroot

Dear Gustavo Zacarias,

On Fri,  4 Apr 2014 18:49:00 -0300, Gustavo Zacarias wrote:
> Pull upstream hg changeset c56ea318eb64 and 676e2d0f0e4d to fix ARM
> build breakage when compiling in thumb mode. Fixes:
> http://autobuild.buildroot.net/results/f44/f447ce933ad8dd975b17aeda03cc46b0cace0b03/
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  .../gmp-01-arm-asm-conditional-on-no-thumb-1.patch  | 21 +++++++++++++++++++++
>  .../gmp-02-arm-asm-conditional-on-no-thumb-2.patch  | 21 +++++++++++++++++++++
>  2 files changed, 42 insertions(+)
>  create mode 100644 package/gmp/gmp-01-arm-asm-conditional-on-no-thumb-1.patch
>  create mode 100644 package/gmp/gmp-02-arm-asm-conditional-on-no-thumb-2.patch

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-05 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 21:49 [Buildroot] [PATCH] gmp: fix target build for ARM thumb Gustavo Zacarias
2014-04-05 12:44 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox