[GHC] #10667: '-g' option generates invalid assembly when '*/*' operator is used

GHC ghc-devs at haskell.org
Wed Jul 22 09:13:19 UTC 2015


#10667: '-g' option generates invalid assembly when '*/*' operator is used
-------------------------------------+-------------------------------------
              Reporter:  slyfox      |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.10.2-rc2
  (CodeGen)                          |
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  Compile-time
  Unknown/Multiple                   |  crash
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 Bug is observed when building cpphs-1.19

 {{{#!hs
 module A where

 x */* y = 42
 }}}

 {{{
 $ ghc -fforce-recomp A -g
 [1 of 1] Compiling A                ( A.hs, A.o )
 /tmp/ghc23923_0/ghc_2.s: Assembler messages:

 /tmp/ghc23923_0/ghc_2.s:17:0:  Error: bad expression

 /tmp/ghc23923_0/ghc_2.s:17:0:
      Warning: missing operand; zero assumed
 ...
 }}}

 The problem here is the following assembly snippet:
 {{{
 .text
         .align 8
         .loc 1 3 1 /* */* */
         .quad   12884901911
         .quad   0
         .quad   15

 }}}

 Would it be worthwile using ';' as a comment instead?
 Don't know if it's universally portable.

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


More information about the ghc-tickets mailing list