summaryrefslogtreecommitdiff
path: root/packages/gmp/gmp-4.2.2/amd64.patch
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2008-05-07 19:57:32 +0000
committerHenning Heinold <heinold@inf.fu-berlin.de>2008-05-07 19:57:32 +0000
commitc3e353c30dfb7467721aabc9b03c348a53e1e7f6 (patch)
tree5e3e196ffd1efe126eb0f45cd414993e02b50c6e /packages/gmp/gmp-4.2.2/amd64.patch
parent287d816e5c2adfa726db9cd4025189b97f57dd9f (diff)
gmp: update to version 4.2.2
* seems to work * add patches 02_noexec-stack.diff and 03_gnu89-inline.diff from debian * add mpf_set_str_c.diff from the gmp-website
Diffstat (limited to 'packages/gmp/gmp-4.2.2/amd64.patch')
-rw-r--r--packages/gmp/gmp-4.2.2/amd64.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/gmp/gmp-4.2.2/amd64.patch b/packages/gmp/gmp-4.2.2/amd64.patch
new file mode 100644
index 0000000000..67be9dd350
--- /dev/null
+++ b/packages/gmp/gmp-4.2.2/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 */
+