git: 4f31d1866e00 - main - lang/odin: fix build on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Jul 2025 21:59:12 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4f31d1866e004ad7d8f349517f6a45c6e93be6fc
commit 4f31d1866e004ad7d8f349517f6a45c6e93be6fc
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-07-04 21:11:49 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-07-04 21:58:57 +0000
lang/odin: fix build on powerpc*
Add the NOP instruction used by powerpc*.
---
lang/odin/files/patch-src_threading.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lang/odin/files/patch-src_threading.cpp b/lang/odin/files/patch-src_threading.cpp
new file mode 100644
index 000000000000..54c6b85c7715
--- /dev/null
+++ b/lang/odin/files/patch-src_threading.cpp
@@ -0,0 +1,11 @@
+--- src/threading.cpp.orig 2025-07-04 20:51:54 UTC
++++ src/threading.cpp
+@@ -532,6 +532,8 @@ gb_internal gb_inline void yield_thread(void) {
+ #elif defined(GB_CPU_RISCV)
+ // I guess?
+ __asm__ volatile ("nop" : : : "memory");
++#elif defined(GB_CPU_PPC)
++ __asm__ volatile ("ori 0,0,0" : : : "memory");
+ #else
+ #error Unknown architecture
+ #endif