From 4d1f11f6a9effce05ba51578b142827834d1f699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 10 Aug 2016 15:21:42 +0200 Subject: [PATCH 1/2] aarch64: Fix operand size warning reported by Clang --- src/aarch64/ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index cf33abc..8ec9c39 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -316,7 +316,7 @@ extend_integer_type (void *source, int type) static void extend_hfa_type (void *dest, void *src, int h) { - int f = h - AARCH64_RET_S4; + ssize_t f = h - AARCH64_RET_S4; void *x0; asm volatile ( From 5e9ac7e252dbb0b7025027c1b6e1a4f3ec48943f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 10 Aug 2016 15:22:19 +0200 Subject: [PATCH 2/2] aarch64: Fix warning about unused function on iOS --- src/aarch64/ffi.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index 8ec9c39..2d92f96 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -55,6 +55,14 @@ struct call_context UINT64 x[N_X_ARG_REG]; }; +#if FFI_EXEC_TRAMPOLINE_TABLE + +#ifdef __MACH__ +#include +#endif + +#else + #if defined (__clang__) && defined (__APPLE__) extern void sys_icache_invalidate (void *start, size_t len); #endif @@ -71,12 +79,6 @@ ffi_clear_cache (void *start, void *end) #endif } -#if FFI_EXEC_TRAMPOLINE_TABLE - -#ifdef __MACH__ -#include -#endif - #endif /* A subroutine of is_vfp_type. Given a structure type, return the type code