Skip to content

Commit

Permalink
lang/mono: fix build on powerpc* with LLVM 15
Browse files Browse the repository at this point in the history
exceptions-ppc.c:812:23: error: incompatible pointer to integer conversion assigning to 'unsigned long' from 'gpointer' (aka 'void *') [-Wint-conversion]
  • Loading branch information
pkubaj committed Mar 18, 2023
1 parent 94c3887 commit 8d2f58f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/mono/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mono
PORTVERSION= 5.10.1.57
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= lang
MASTER_SITES= https://download.mono-project.com/sources/mono/
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
Expand Down
11 changes: 11 additions & 0 deletions lang/mono/files/patch-mono_mini_exceptions-ppc.c
@@ -0,0 +1,11 @@
--- mono/mini/exceptions-ppc.c.orig 2023-03-18 12:46:51 UTC
+++ mono/mini/exceptions-ppc.c
@@ -809,7 +809,7 @@ mono_arch_setup_async_callback (MonoContext *ctx, void
{
uintptr_t sp = (uintptr_t) MONO_CONTEXT_GET_SP(ctx);
sp -= PPC_MINIMAL_STACK_SIZE;
- *(unsigned long *)sp = MONO_CONTEXT_GET_SP(ctx);
+ *(unsigned long *)sp = (unsigned long)MONO_CONTEXT_GET_SP(ctx);
MONO_CONTEXT_SET_BP(ctx, sp);
MONO_CONTEXT_SET_IP(ctx, (unsigned long) async_cb);
}

0 comments on commit 8d2f58f

Please sign in to comment.