summaryrefslogtreecommitdiff
path: root/math/pari/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'math/pari/patches/patch-ai')
-rw-r--r--math/pari/patches/patch-ai38
1 files changed, 38 insertions, 0 deletions
diff --git a/math/pari/patches/patch-ai b/math/pari/patches/patch-ai
new file mode 100644
index 00000000000..a5dd517a2df
--- /dev/null
+++ b/math/pari/patches/patch-ai
@@ -0,0 +1,38 @@
+$NetBSD: patch-ai,v 1.1 2003/07/07 21:57:51 jtb Exp $
+
+--- src/kernel/sparcv8/level0.S.orig
++++ src/kernel/sparcv8/level0.S
+@@ -19,7 +19,7 @@
+ /* addll addllx subll subllx shiftl shiftlr mulll addmul */
+
+ #ifndef __GNUC__
+-#if defined(NO_UNDERSCORE) || defined(linux)
++#if defined(NO_UNDERSCORE) || defined(linux) || defined(__NetBSD__)
+ # define C(entrypoint) entrypoint
+ #elif defined(sun) || defined(NeXT)
+ # ifdef __STDC__
+@@ -28,13 +28,13 @@
+ # define C(entrypoint) _/**/entrypoint
+ # endif
+ #endif
+-#if defined(sun) || defined(linux)
++#if defined(sun) || defined(linux) || defined(__NetBSD__)
+ # define GLOBL .global
+ #elif defined(NeXT)
+ # define GLOBL .globl
+ #endif
+
+-#if defined(sun) || defined(linux)
++#if defined(sun) || defined(linux) || defined(__NetBSD__)
+ .seg "text"
+ #elif defined(NeXT)
+ .text
+@@ -111,7 +111,7 @@
+ retl
+ st %o4,[%o3+%lo(C(hiremainder))]
+
+-#if defined(sun) || defined(linux)
++#if defined(sun) || defined(linux) || defined(__NetBSD__)
+ .seg "bss"
+ .align 4
+ C(hiremainder): .skip 4