[GHC] #14779: Compiling with -g fails -lint-core checks

GHC ghc-devs at haskell.org
Mon Mar 5 13:48:35 UTC 2018


#14779: Compiling with -g fails -lint-core checks
-------------------------------------+-------------------------------------
        Reporter:  niteria           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.2
       Component:  Compiler          |              Version:  8.3
  (Debugging)                        |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #14122, #14123,   |  Differential Rev(s):  phab:D4423
  #8472, #14406                      |
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by niteria):

 I've hit a small snag trying to follow:
 https://ghc.haskell.org/trac/ghc/ticket/14779#comment:15

 I expected top level primitive strings (things of type `Addr#`) to be
 either `Lit (MachStr _)` or `Lit (MachStr _)`wrapped in any number of
 allowed `Tick t _`.

 Running the `T9583` after reverting
 f5b275a239d2554c4da0b7621211642bf3b10650, revealed top level bindings of
 the form:

 {{{
 $tT_sas7 :: Addr#
 [LclId]
 $tT_sas7
   = src<libraries/base/Data/Data.hs:(620,1)-(623,25)>
     src<libraries/base/GHC/Base.hs:1047:1-18> $tcT_sahj

 $tcT_sahj :: Addr#
 [LclId]
 $tcT_sahj = "T"#
 }}}

 This appears to be a variant of a problem from the original "allow top
 level primitive strings" patch. Changing CSE similarly to
 https://phabricator.haskell.org/D2605#inline-23997 may be what I need to
 do.

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


More information about the ghc-tickets mailing list