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

GHC ghc-devs at haskell.org
Sun Jan 10 18:06:19 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 slyfox):

 One more note:

 The bug you describe should surface on amd64 if you change return type
 from 'int' (%rax) to 'double' (%xmm0) in your example, correct? On
 gcc-5.3.0/amd64 it seems to work as expected:
 {{{
         call    double_returning_function
         cvttsd2si       %xmm0, %eax
         cmpl    $42, %eax

 }}}

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


More information about the ghc-tickets mailing list