summaryrefslogtreecommitdiff
path: root/packages/mpfr/long-long-thumb.patch
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2008-10-27 22:26:35 +0000
committerPhil Blundell <philb@gnu.org>2008-10-27 22:26:35 +0000
commit84021b1e236508169be65e802a9c0a25fc9a8827 (patch)
treeba462971b9fe0ca97f0029a63fa9a17e78a81d50 /packages/mpfr/long-long-thumb.patch
parent859ecccee890787b33bda996de76589b509178a3 (diff)
mpfr: crusade against inline assembler
Diffstat (limited to 'packages/mpfr/long-long-thumb.patch')
-rw-r--r--packages/mpfr/long-long-thumb.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/mpfr/long-long-thumb.patch b/packages/mpfr/long-long-thumb.patch
new file mode 100644
index 0000000000..a4029d7990
--- /dev/null
+++ b/packages/mpfr/long-long-thumb.patch
@@ -0,0 +1,11 @@
+--- mpfr-2.3.1/mpfr-longlong.h~ 2008-01-01 03:29:09.000000000 +0000
++++ mpfr-2.3.1/mpfr-longlong.h 2008-10-27 21:46:44.000000000 +0000
+@@ -406,7 +406,7 @@
+ "rIJ" ((USItype) (bl)))
+ #endif
+
+-#if defined (__arm__) && W_TYPE_SIZE == 32
++#if defined (__arm__) && W_TYPE_SIZE == 32 && !defined(__thumb__)
+ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
+ __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3" \
+ : "=r" (sh), "=&r" (sl) \