[GHC] #249: -caf-all bugs

GHC trac at galois.com
Fri Oct 13 11:13:35 EDT 2006


#249: -caf-all bugs
--------------------------+-------------------------------------------------
    Reporter:  simonmar   |        Owner:  simonmar
        Type:  bug        |       Status:  assigned
    Priority:  low        |    Milestone:  6.6.1   
   Component:  Profiling  |      Version:  6.2.1   
    Severity:  normal     |   Resolution:  None    
    Keywords:             |   Difficulty:  Unknown 
Architecture:  Unknown    |           Os:  Unknown 
--------------------------+-------------------------------------------------
Changes (by igloo):

  * architecture:  => Unknown
  * difficulty:  => Unknown
  * milestone:  => 6.6.1
  * os:  => Unknown

Old description:

> {{{
> P.C.Callaghan [p.c.callaghan at durham.ac.uk] submitted
> this bug:
>
> I'm trying to use the -caf-all flag with ghc-6.02, in
> conjunction with -O
> (which means going via C...)
>
> But in a few modules of a large program, the .hc files
> contain duplicate
> definitions of "MODsat_CAF_cc_ccs" (where MOD = a
> particular module)
>
> I can't see an obvious pattern to the number of
> duplications. All the
> affected modules use MPCs heavily. It doesn't look like
> the duplications
> are 1-1 with the instance decls. It only happens on a
> few modules out
> of many which also use classes heavily.
>
> NB I hand-patched the .hc files by hand, and in the
> results, not much of
> the dictionary/caf info showed up! Should -auto-dicts work?
>

> }}}

New description:

 {{{
 P.C.Callaghan [p.c.callaghan at durham.ac.uk] submitted
 this bug:

 I'm trying to use the -caf-all flag with ghc-6.02, in
 conjunction with -O
 (which means going via C...)

 But in a few modules of a large program, the .hc files
 contain duplicate
 definitions of "MODsat_CAF_cc_ccs" (where MOD = a
 particular module)

 I can't see an obvious pattern to the number of
 duplications. All the
 affected modules use MPCs heavily. It doesn't look like
 the duplications
 are 1-1 with the instance decls. It only happens on a
 few modules out
 of many which also use classes heavily.

 NB I hand-patched the .hc files by hand, and in the
 results, not much of
 the dictionary/caf info showed up! Should -auto-dicts work?


 }}}

Comment:

 See also [ticket:931] for another example of the problem.
 Tested by prof001 and prof002.

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


More information about the Glasgow-haskell-bugs mailing list