Thu Nov  5 19:05:30 PST 2009  [email protected]
  * * Refactor CLabel.RtsLabel to CLabel.CmmLabel
  
  The type of the CmmLabel ctor is now
    CmmLabel :: PackageId -> FastString -> CmmLabelInfo -> CLabel
    
   - When you construct a CmmLabel you have to explicitly say what
     package it is in. Many of these will just use rtsPackageId, but
     I've left it this way to remind people not to pretend labels are
     in the RTS package when they're not. 
     
   - When parsing a Cmm file, labels that are not defined in the 
     current file are assumed to be in the RTS package. 
     
     Labels imported like
        import label
     are assumed to be in a generic "foreign" package, which is different
     from the current one.
     
     Labels imported like
        import "package-name" label
     are marked as coming from the named package.
     
     This last one is needed for the integer-gmp library as we want to
     refer to labels that are not in the same compilation unit, but
     are in the same non-rts package.
     
     This should help remove the nasty #ifdef __PIC__ stuff from
     integer-gmp/cbits/gmp-wrappers.cmm
     

    M ./compiler/cmm/CLabel.hs -38 +31
    M ./compiler/cmm/CmmBuildInfoTables.hs -2 +3
    M ./compiler/cmm/CmmCPSGen.hs -2 +3
    M ./compiler/cmm/CmmParse.y -139 +66
    M ./compiler/codeGen/CgCallConv.hs -1 +2
    M ./compiler/codeGen/CgClosure.lhs -1 +1
    M ./compiler/codeGen/CgCon.lhs -2 +3
    A ./compiler/codeGen/CgExtCode.hs
    M ./compiler/codeGen/CgForeignCall.hs -2 +3
    M ./compiler/codeGen/CgHeapery.lhs -9 +10
    M ./compiler/codeGen/CgMonad.lhs -1 +1
    M ./compiler/codeGen/CgPrimOp.hs -1 +2
    M ./compiler/codeGen/CgProf.hs -8 +10
    M ./compiler/codeGen/CgTicky.hs -4 +4
    M ./compiler/codeGen/CgUtils.hs -11 +23
    M ./compiler/codeGen/StgCmmBind.hs -3 +3
    M ./compiler/codeGen/StgCmmCon.hs -2 +3
    M ./compiler/codeGen/StgCmmHeap.hs -5 +8
    M ./compiler/codeGen/StgCmmPrim.hs -1 +2
    M ./compiler/codeGen/StgCmmProf.hs -8 +10
    M ./compiler/codeGen/StgCmmTicky.hs -4 +4
    M ./compiler/codeGen/StgCmmUtils.hs -10 +12
    M ./compiler/parser/Lexer.x -2 +11

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20091106030530-43c66-e59658df6f2fc6c3398e6d731bd76a1f09577959.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to