summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2022-10-27 19:15:42 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-10-27 20:25:51 +0300
commit02ab199de0bea884d95f33d0ec5d2a6be6be4e69 (patch)
tree91b0ca63d49f0086e3315057b6167a3ebc771813 /dev-libs/nspr
parentsys-fs/lvm2: fix hardcoded readelf (diff)
downloadgentoo-02ab199de0bea884d95f33d0ec5d2a6be6be4e69.tar.gz
gentoo-02ab199de0bea884d95f33d0ec5d2a6be6be4e69.tar.bz2
gentoo-02ab199de0bea884d95f33d0ec5d2a6be6be4e69.zip
dev-libs/nspr: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/27983 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/nspr')
-rw-r--r--dev-libs/nspr/files/nspr-4.33-loong.patch100
1 files changed, 0 insertions, 100 deletions
diff --git a/dev-libs/nspr/files/nspr-4.33-loong.patch b/dev-libs/nspr/files/nspr-4.33-loong.patch
deleted file mode 100644
index 96772a2767c0..000000000000
--- a/dev-libs/nspr/files/nspr-4.33-loong.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-https://phabricator.services.mozilla.com/D142407
-
---- a/pr/include/md/_linux.h
-+++ b/pr/include/md/_linux.h
-@@ -71,10 +71,12 @@
- #define _PR_SI_ARCHITECTURE "microblaze"
- #elif defined(__nds32__)
- #define _PR_SI_ARCHITECTURE "nds32"
- #elif defined(__xtensa__)
- #define _PR_SI_ARCHITECTURE "xtensa"
-+#elif defined(__loongarch64)
-+#define _PR_SI_ARCHITECTURE "loongarch64"
- #else
- #error "Unknown CPU architecture"
- #endif
- #define PR_DLL_SUFFIX ".so"
-
-@@ -139,10 +141,22 @@
- #define _MD_ATOMIC_ADD _PR_x86_64_AtomicAdd
- extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
- #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet
- #endif
-
-+#if defined(__loongarch__)
-+#if defined(__GNUC__)
-+/* Use GCC built-in functions */
-+#define _PR_HAVE_ATOMIC_OPS
-+#define _MD_INIT_ATOMIC()
-+#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1)
-+#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1)
-+#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i)
-+#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv)
-+#endif
-+#endif
-+
- #if defined(__or1k__)
- #if defined(__GNUC__)
- /* Use GCC built-in functions */
- #define _PR_HAVE_ATOMIC_OPS
- #define _MD_INIT_ATOMIC()
---- a/pr/include/md/_linux.cfg
-+++ b/pr/include/md/_linux.cfg
-@@ -1253,10 +1253,56 @@
- #define PR_ALIGN_OF_WORD 8
-
- #define PR_BYTES_PER_WORD_LOG2 3
- #define PR_BYTES_PER_DWORD_LOG2 3
-
-+#elif defined(__loongarch64)
-+
-+#undef IS_BIG_ENDIAN
-+#define IS_LITTLE_ENDIAN 1
-+#define IS_64
-+
-+#define PR_BYTES_PER_BYTE 1
-+#define PR_BYTES_PER_SHORT 2
-+#define PR_BYTES_PER_INT 4
-+#define PR_BYTES_PER_INT64 8
-+#define PR_BYTES_PER_LONG 8
-+#define PR_BYTES_PER_FLOAT 4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD 8
-+#define PR_BYTES_PER_DWORD 8
-+
-+#define PR_BITS_PER_BYTE 8
-+#define PR_BITS_PER_SHORT 16
-+#define PR_BITS_PER_INT 32
-+#define PR_BITS_PER_INT64 64
-+#define PR_BITS_PER_LONG 64
-+#define PR_BITS_PER_FLOAT 32
-+#define PR_BITS_PER_DOUBLE 64
-+#define PR_BITS_PER_WORD 64
-+
-+#define PR_BITS_PER_BYTE_LOG2 3
-+#define PR_BITS_PER_SHORT_LOG2 4
-+#define PR_BITS_PER_INT_LOG2 5
-+#define PR_BITS_PER_INT64_LOG2 6
-+#define PR_BITS_PER_LONG_LOG2 6
-+#define PR_BITS_PER_FLOAT_LOG2 5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2 6
-+
-+#define PR_ALIGN_OF_SHORT 2
-+#define PR_ALIGN_OF_INT 4
-+#define PR_ALIGN_OF_LONG 8
-+#define PR_ALIGN_OF_INT64 8
-+#define PR_ALIGN_OF_FLOAT 4
-+#define PR_ALIGN_OF_DOUBLE 8
-+#define PR_ALIGN_OF_POINTER 8
-+#define PR_ALIGN_OF_WORD 8
-+
-+#define PR_BYTES_PER_WORD_LOG2 3
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
- #else
-
- #error "Unknown CPU architecture"
-
- #endif
-