[GHC] #11395: The via-C code generation backend is incompatible with gcc 5.3.1 on m68k (ELF)

GHC ghc-devs at haskell.org
Mon Jan 11 18:57:02 UTC 2016


#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 rwbarton):

 Could we, instead of
 {{{
 EF_(raiseExceptionHelper);
 ...
 /* exact prototype dectaration, assignment and call: */
 {
     W_ (*ghcFunPtr)(void *, void *, void *);
     ghcFunPtr = ((W_ (*)(void *, void *, void *))raiseExceptionHelper);
 }}}
 generate a local extern function declaration, like
 {{{
 {
     W_ (*ghcFunPtr)(void *, void *, void *);
     extern W_ (*raiseExceptionHelper)(void *, void *, void *);
     ghcFunPtr = ((W_ (*)(void *, void *, void *))raiseExceptionHelper);
 }}}
 (sorry if I got the syntax wrong)?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11395#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list