
#12622: Unboxed static pointers lead to missing SPT entries -------------------------------------+------------------------------------- Reporter: mboes | Owner: | facundo.dominguez Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * owner: facundominguez => facundo.dominguez * cc: facundominguez (removed) * cc: facundo.dominguez, simonpj (added) Comment: One simple solution could be to redefine `StaticPtr` to something like {{{ data StaticPtr a = StaticPtr {-# NOUNPACK #-} !(StaticPtr' a) data StaticPtr' a = StaticPtr' Word# Word# StaticPtrInfo a }}} This would yield the `StaticPtr` data constructor from being eliminated due to unboxing. Another solution would be to tell the compiler never to unbox a field of type `StaticPtr`. Not sure how easy this would be. simonpj? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12622#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler