summaryrefslogtreecommitdiff
path: root/devel/gmp
diff options
context:
space:
mode:
authorfredb <fredb>2002-05-10 05:06:22 +0000
committerfredb <fredb>2002-05-10 05:06:22 +0000
commitf51f2c27251dc490750ccdfeeaaec94b59b56a16 (patch)
treede6d77c8fb930da57f17f74bb75419fb3bb23bb8 /devel/gmp
parent5855431b2371f3d8f0d55071bddf9b0096893188 (diff)
downloadpkgsrc-f51f2c27251dc490750ccdfeeaaec94b59b56a16.tar.gz
Make this compile with gas-2.11.2/m68k/ELF (NetBSD-1.5ZC/mac68k).
Diffstat (limited to 'devel/gmp')
-rw-r--r--devel/gmp/distinfo3
-rw-r--r--devel/gmp/patches/patch-aa33
2 files changed, 35 insertions, 1 deletions
diff --git a/devel/gmp/distinfo b/devel/gmp/distinfo
index fcc833e1fe8..050ffae21bc 100644
--- a/devel/gmp/distinfo
+++ b/devel/gmp/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.3 2002/04/10 12:37:53 hubertf Exp $
+$NetBSD: distinfo,v 1.4 2002/05/10 05:06:22 fredb Exp $
SHA1 (gmp-4.0.1.tar.gz) = 3ead9745123e1324c0f0ab9985d4cb28b6d74655
Size (gmp-4.0.1.tar.gz) = 1745294 bytes
+SHA1 (patch-aa) = 01e298efa337dec5e92e9376f369128cf481fbf0
diff --git a/devel/gmp/patches/patch-aa b/devel/gmp/patches/patch-aa
new file mode 100644
index 00000000000..91488883c57
--- /dev/null
+++ b/devel/gmp/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.7 2002/05/10 05:06:23 fredb Exp $
+
+--- longlong.h.orig Thu Nov 15 14:48:14 2001
++++ longlong.h
+@@ -734,8 +734,8 @@
+ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
+ __asm__ ("add%.l %5,%1\n\taddx%.l %3,%0" \
+ : "=d" ((USItype)(sh)), "=&d" ((USItype)(sl)) \
+- : "%0" ((USItype)(ah)), "d" ((USItype)(bh)), \
+- "%1" ((USItype)(al)), "g" ((USItype)(bl)))
++ : "0" ((USItype)(ah)), "d" ((USItype)(bh)), \
++ "1" ((USItype)(al)), "g" ((USItype)(bl)))
+ #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
+ __asm__ ("sub%.l %5,%1\n\tsubx%.l %3,%0" \
+ : "=d" ((USItype)(sh)), "=&d" ((USItype)(sl)) \
+@@ -750,7 +750,7 @@
+ #define umul_ppmm(w1, w0, u, v) \
+ __asm__ ("mulu%.l %3,%1:%0" \
+ : "=d" ((USItype)(w0)), "=d" ((USItype)(w1)) \
+- : "%0" ((USItype)(u)), "dmi" ((USItype)(v)))
++ : "0" ((USItype)(u)), "dmi" ((USItype)(v)))
+ #define UMUL_TIME 45
+ #define udiv_qrnnd(q, r, n1, n0, d) \
+ __asm__ ("divu%.l %4,%1:%0" \
+@@ -788,7 +788,7 @@
+ " | End inlined umul_ppmm" \
+ : "=&d" ((USItype)(xh)), "=&d" ((USItype)(xl)), \
+ "=d" (__umul_tmp1), "=&d" (__umul_tmp2) \
+- : "%2" ((USItype)(a)), "d" ((USItype)(b))); \
++ : "2" ((USItype)(a)), "d" ((USItype)(b))); \
+ } while (0)
+ #define UMUL_TIME 100
+ #define UDIV_TIME 400