#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: #8562 -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"9fbb8c788d4bdf091709778b42a1294bbdabef95/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="9fbb8c788d4bdf091709778b42a1294bbdabef95" Rejigger flushExec implementation (#8562, #8561) Instead, just don't do anything on x86/amd64, and on !x86, use either A) __clear_cache from libgcc, or B) sys_icache_invalidate for OS X (and iOS.) Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8561#comment:12> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler