[GHC] #7684: cgrun071 segfaults

GHC ghc-devs at haskell.org
Thu Mar 20 07:53:57 UTC 2014


#7684: cgrun071 segfaults
----------------------------------+----------------------------------
        Reporter:  tibbe          |            Owner:
            Type:  bug            |           Status:  infoneeded
        Priority:  normal         |        Milestone:  7.8.1
       Component:  Compiler       |          Version:  7.7
      Resolution:                 |         Keywords:
Operating System:  MacOS X        |     Architecture:  x86_64 (amd64)
 Type of failure:  Runtime crash  |       Difficulty:  Unknown
       Test Case:  cgrun071       |       Blocked By:
        Blocking:                 |  Related Tickets:
----------------------------------+----------------------------------

Comment (by tibbe):

 Replying to [comment:42 simonmar]:
 > Well, one bug is that in `emitPopCntCall` we don't cast the argument to
 the correct width.  The `-dcmm-lint` should catch it, because the argument
 width isn't the same as the primop is expecting, but the Cmm linter
 doesn't check the arguments of prim calls (that's another bug).

 How would one cast the argument in the `emitPopCntCall`?

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


More information about the ghc-tickets mailing list