git: 224996190d4c - 2024Q4 - math/sprng: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Dec 2024 14:40:34 UTC
The branch 2024Q4 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=224996190d4c247b5776835b42e58cdcb00bff76
commit 224996190d4c247b5776835b42e58cdcb00bff76
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-12-17 18:48:07 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-12-19 14:40:06 +0000
math/sprng: fix build on armv7
Fix inline assembly that doesn't work with clang or recent C++
standards.
Approved by: portmgr (build fix blanket)
MFH: 2024Q4
(cherry picked from commit 002e304768c869ba9af890b6d32f4b194296ce71)
---
math/sprng/files/patch-SRC_pmlcg_longlong.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/math/sprng/files/patch-SRC_pmlcg_longlong.h b/math/sprng/files/patch-SRC_pmlcg_longlong.h
new file mode 100644
index 000000000000..a153cbb31087
--- /dev/null
+++ b/math/sprng/files/patch-SRC_pmlcg_longlong.h
@@ -0,0 +1,15 @@
+--- SRC/pmlcg/longlong.h.orig 2024-12-17 18:25:17 UTC
++++ SRC/pmlcg/longlong.h
+@@ -211,9 +211,8 @@ UDItype __umulsidi3 (USItype, USItype);
+ "r" ((USItype) (al)), \
+ "rI" ((USItype) (bl)))
+ #define umul_ppmm(xh, xl, a, b) \
+-{register USItype __t0, __t1, __t2; \
+- __asm__ ("%@ Inlined umul_ppmm\n" \
+- " mov %2, %5, lsr #16\n" \
++{USItype __t0, __t1, __t2; \
++ __asm__ (" mov %2, %5, lsr #16\n" \
+ " mov %0, %6, lsr #16\n" \
+ " bic %3, %5, %2, lsl #16\n" \
+ " bic %4, %6, %0, lsl #16\n" \
+