mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-haskell/hashtables: Fix clang compile error
Thanks to toralf for reporting. Closes: https://bugs.gentoo.org/919302 Signed-off-by: Mark Wright <gienah@gentoo.org>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
--- hashtables-1.3.1-orig/cbits/sse-42.c 2001-09-09 11:46:40.000000000 +1000
|
||||
+++ hashtables-1.3.1/cbits/sse-42.c 2024-06-01 12:50:27.039285052 +1000
|
||||
@@ -49,8 +49,7 @@
|
||||
#define _MODE (SIDD_UWORD_OPS | SIDD_CMP_EQUAL_EACH)
|
||||
|
||||
static inline __m128i cmp_mask(__m128i a, __m128i b) {
|
||||
- const int mode = SIDD_UWORD_OPS | SIDD_CMP_EQUAL_EACH | SIDD_BIT_MASK;
|
||||
- return _mm_cmpistrm(a, b, mode);
|
||||
+ return _mm_cmpistrm(a, b, SIDD_UWORD_OPS | SIDD_CMP_EQUAL_EACH | SIDD_BIT_MASK);
|
||||
}
|
||||
|
||||
static inline int32_t line_result(uint32_t m, int start) {
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -36,6 +36,10 @@ DEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.3.1-clang-argument-must-be-a-constant-integer.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag bounds-checking bounds-checking) \
|
||||
|
||||
Reference in New Issue
Block a user