[GHC] #14742: Unboxed sums can treat Word#s as Int#s

GHC ghc-devs at haskell.org
Thu Feb 1 07:45:56 UTC 2018


#14742: Unboxed sums can treat Word#s as Int#s
-------------------------------------+-------------------------------------
        Reporter:  duog              |                Owner:  osa1
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:  UnboxedSums
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by osa1):

 `RuntimeRep` is much older than unboxed sums and completely unrelated.
 Apparently it's used to generate "hints" for ABI calls (see
 `primRepForeignHint`). It may be used in C codegen (maybe to give an
 argument type `int32_t` instead of `uint32_t` etc.), but other than that
 I'm not sure if any of the platforms GHC supports have different ABIs for
 passing ints vs. words.

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


More information about the ghc-tickets mailing list