
#8561: Clang/iOS: __builtin___clear_cache doesn't exist in clang, use __clear_cache instead -------------------------------------+------------------------------------- Reporter: lukexi | Owner: Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Other | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by lukexi): OK, thanks for that! I'm running a build now with {{{ #if defined(ios_HOST_OS) || defined (darwin_HOST_OS) void sys_icache_invalidate(void *start, size_t len); #endif /* Synchronize data/instruction cache. */ void clearCache(void *start, void *end) { #if defined(ios_HOST_OS) || defined (darwin_HOST_OS) sys_icache_invalidate(start, (char *)end-(char *)start); #elif defined(__GNUC__) __builtin___clear_cache(start, end); #else #error "Missing builtin to flush instruction cache" #endif }}} adapted from that to test -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8561#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler