summaryrefslogtreecommitdiff
path: root/packages/gmp/gmp-4.1.4
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-05-08 06:52:09 +0000
committerKoen Kooi <koen@openembedded.org>2008-05-08 06:52:09 +0000
commit7bb4f97292ac3b0dd1e43addbb577c6d3bb5e5fe (patch)
treeceb15d6b4ce9dc0e30c98629788711ea2ebdeda6 /packages/gmp/gmp-4.1.4
parentc2996ace417ffddf8aeee3c80a365f6e1b929adc (diff)
disapproval of revision 'b8e46b797b32111526a2116d020fdd9e1c079965'
Diffstat (limited to 'packages/gmp/gmp-4.1.4')
-rw-r--r--packages/gmp/gmp-4.1.4/amd64.patch14
-rw-r--r--packages/gmp/gmp-4.1.4/sh4-asmfix.patch26
2 files changed, 40 insertions, 0 deletions
diff --git a/packages/gmp/gmp-4.1.4/amd64.patch b/packages/gmp/gmp-4.1.4/amd64.patch
new file mode 100644
index 0000000000..67be9dd350
--- /dev/null
+++ b/packages/gmp/gmp-4.1.4/amd64.patch
@@ -0,0 +1,14 @@
+--- gmp-4.1.4/longlong.h.orig 2004-04-22 00:34:28.000000000 +0200
++++ gmp-4.1.4/longlong.h 2005-07-18 01:13:06.000000000 +0200
+@@ -738,8 +738,10 @@
+ count is only an int. */
+ #define count_trailing_zeros(count, x) \
+ do { \
++ UDItype __cbtmp; \
+ ASSERT ((x) != 0); \
+- __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \
++ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \
++ (count) = __cbtmp; \
+ } while (0)
+ #endif /* x86_64 */
+
diff --git a/packages/gmp/gmp-4.1.4/sh4-asmfix.patch b/packages/gmp/gmp-4.1.4/sh4-asmfix.patch
new file mode 100644
index 0000000000..1a01f61533
--- /dev/null
+++ b/packages/gmp/gmp-4.1.4/sh4-asmfix.patch
@@ -0,0 +1,26 @@
+--- gmp-4.1.4/mpn/sh/add_n.s 2005/11/17 08:44:00 1.1
++++ gmp-4.1.4/mpn/sh/add_n.s 2005/11/17 08:18:57
+@@ -29,8 +29,8 @@
+
+ .text
+ .align 2
+- .global ___gmpn_add_n
+-___gmpn_add_n:
++ .global __gmpn_add_n
++__gmpn_add_n:
+ mov #0,r3 ! clear cy save reg
+
+ Loop: mov.l @r5+,r1
+--- gmp-4.1.4/mpn/sh/sub_n.s 2005/11/17 08:44:04 1.1
++++ gmp-4.1.4/mpn/sh/sub_n.s 2005/11/17 08:18:59
+@@ -29,8 +29,8 @@
+
+ .text
+ .align 2
+- .global ___gmpn_sub_n
+-___gmpn_sub_n:
++ .global __gmpn_sub_n
++__gmpn_sub_n:
+ mov #0,r3 ! clear cy save reg
+
+ Loop: mov.l @r5+,r1