[GHC] #5261: -pgmF messes up hpc .mix output

GHC cvs-ghc at haskell.org
Wed Jun 15 22:42:28 CEST 2011


#5261: -pgmF messes up hpc .mix output
---------------------------------+------------------------------------------
    Reporter:  elaforge          |       Owner:  andy@…         
        Type:  bug               |      Status:  new            
    Priority:  normal            |   Component:  Code Coverage  
     Version:  7.0.3             |    Keywords:                 
    Testcase:                    |   Blockedby:                 
          Os:  MacOS X           |    Blocking:                 
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown   
---------------------------------+------------------------------------------
 For example:


 {{{
 % cat t.hs
 f x = x * 20
 main = print (f 20)
 % cat pp
 #!/bin/sh
 cp $2 $3
 % ghc -fhpc -F -pgmF./pp t.hs
 [1 of 1] Compiling Main             ( t.hs, t.o )
 Linking t ...
 % cat .hpc/Main.mix
 Mix "t.hs" 1308170257 1934109072 1 []
 }}}

 If I omit pgmF, then I get proper Boxes in the .mix file.  When I run over
 a large code base, some scattered expressions get Boxes, but the majority
 don't.

 I think this started showing up with ghc 7.

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



More information about the Glasgow-haskell-bugs mailing list