
#11395: The via-C code generation backend is incompatible with gcc 5.3.1 on m68k (ELF) --------------------------------------------+------------------------------ Reporter: mkarcher | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: m68k Type of failure: GHC doesn't work at all | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | --------------------------------------------+------------------------------ Comment (by mkarcher): rwbarton: The possibility to use a local extern function declaration to avoid the function pointer hack occurred to me, too. I don't know enough about ghc internals to determine whether it is viable. You might try to go without ghcFunPtr, if possible. Like generating {{{ { extern W_ raiseExceptionHelper(void *, void *, void *); raiseExceptionHelper((void*)((W_)BaseReg, (void*)(W_)CurrentTSO, (void*)_c2z);;} }}} instead of {{{ { W_ (*ghcFunPtr)(void *, void *, void *); ghcFunPtr = ((W_ (*)(void *, void *, void *))raiseExceptionHelper); _c2y = ghcFunPtr((void *)(W_)BaseReg, (void *)(W_)CurrentTSO, (void *)_c2z);;} }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11395#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler