summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/gmp/gmp-4.1.2/amd64.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-11-16 16:23:23 +0000
committerRichard Purdie <richard@openedhand.com>2005-11-16 16:23:23 +0000
commite5ba6f2e4424ea4b8baa39bfaec6ab01b7b66861 (patch)
tree9a1703625d50df42136931ab7a5cb042cd5760b3 /openembedded/packages/gmp/gmp-4.1.2/amd64.patch
parent1a5f0fedce5084690bb478a302d7dd326198afee (diff)
downloadpoky-e5ba6f2e4424ea4b8baa39bfaec6ab01b7b66861.tar.gz
Add gmp and mpfr (needed by gcc 4.0.2)
git-svn-id: https://svn.o-hand.com/repos/poky@183 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/gmp/gmp-4.1.2/amd64.patch')
-rw-r--r--openembedded/packages/gmp/gmp-4.1.2/amd64.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/openembedded/packages/gmp/gmp-4.1.2/amd64.patch b/openembedded/packages/gmp/gmp-4.1.2/amd64.patch
new file mode 100644
index 0000000000..bbede7fcc7
--- /dev/null
+++ b/openembedded/packages/gmp/gmp-4.1.2/amd64.patch
@@ -0,0 +1,16 @@
1Index: gmp-4.1.2/longlong.h
2===================================================================
3--- gmp-4.1.2.orig/longlong.h 2005-06-24 13:38:06.787570452 -0700
4+++ gmp-4.1.2/longlong.h 2005-06-24 13:38:31.539556496 -0700
5@@ -715,8 +715,10 @@
6 } while (0)
7 #define count_trailing_zeros(count, x) \
8 do { \
9+ UDItype __cbtmp; \
10 ASSERT ((x) != 0); \
11- __asm__ ("bsfq %1,%0" : "=r" (count) : "rm" ((UDItype)(x))); \
12+ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \
13+ (count) = __cbtmp; \
14 } while (0)
15 #endif /* x86_64 */
16