aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gmp/patches/000-OE-amd64.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-12-09 13:28:57 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-12-09 13:28:57 +0000
commit2a3dde2cacd7ec6989141bdc66eaaae09ee1c9e9 (patch)
treeb38c6470ded4fe1034199d822f79314ac6929215 /tools/gmp/patches/000-OE-amd64.patch
parent8f143af3ffe3ee7c6a191ab943e0e1c55cee749b (diff)
downloadupstream-2a3dde2cacd7ec6989141bdc66eaaae09ee1c9e9.tar.gz
upstream-2a3dde2cacd7ec6989141bdc66eaaae09ee1c9e9.tar.bz2
upstream-2a3dde2cacd7ec6989141bdc66eaaae09ee1c9e9.zip
tools/gmp: update to version 5.0.1
SVN-Revision: 24380
Diffstat (limited to 'tools/gmp/patches/000-OE-amd64.patch')
-rw-r--r--tools/gmp/patches/000-OE-amd64.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/gmp/patches/000-OE-amd64.patch b/tools/gmp/patches/000-OE-amd64.patch
new file mode 100644
index 0000000000..957a7224ea
--- /dev/null
+++ b/tools/gmp/patches/000-OE-amd64.patch
@@ -0,0 +1,16 @@
+Index: gmp-5.0.1/longlong.h
+===================================================================
+--- gmp-5.0.1.orig/longlong.h
++++ gmp-5.0.1/longlong.h
+@@ -849,8 +849,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO (
+ 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 */
+