From f543ae2baef4ba714d7b061f0fa374a374fa79d5 Mon Sep 17 00:00:00 2001 From: meancoot Date: Thu, 19 Dec 2013 16:53:46 -0500 Subject: (iOS) Work around clang crash when compiling libpcsxcor/new_dynarec/pcsxmem.c. --- libpcsxcore/new_dynarec/pcsxmem.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libpcsxcore') diff --git a/libpcsxcore/new_dynarec/pcsxmem.c b/libpcsxcore/new_dynarec/pcsxmem.c index 3d14904..0a75442 100644 --- a/libpcsxcore/new_dynarec/pcsxmem.c +++ b/libpcsxcore/new_dynarec/pcsxmem.c @@ -30,7 +30,12 @@ static u32 mem_ffwtab[(1+2+4) * 0x1000 / 4]; //static u32 mem_unmrtab[(1+2+4) * 0x1000 / 4]; static u32 mem_unmwtab[(1+2+4) * 0x1000 / 4]; +// When this is called in a loop, and 'h' is a function pointer, clang will crash. +#ifdef __clang__ +static __attribute__ ((noinline)) void map_item(u32 *out, const void *h, u32 flag) +#else static void map_item(u32 *out, const void *h, u32 flag) +#endif { u32 hv = (u32)h; if (hv & 1) { -- cgit v1.2.3