darcs patch: Change the strategy to determine dynamic data access

Clemens Fruhwirth clemens at endorphin.org
Wed Jul 11 01:39:53 EDT 2007


The following patch undoes a lot of this_pkg passing in codeGen. If
you get any conflicts in your local changes, just make sure you remove
the this_pkg parameter.

Tue Jul 10 20:29:17 CEST 2007  Clemens Fruhwirth <clemens at endorphin.org>
  * Change the strategy to determine dynamic data access
  
  Instead of attaching the information whether a Label is going to be
  accessed dynamically or not (distinction between IdLabel/DynLabel and
  additional flags in ModuleInitLabel and PlainModuleInitLabel), we hand
  dflags through the CmmOpt monad and the NatM monad. Before calling
  labelDynamic in PositionIndependentCode, we extract thisPackage from
  dflags and supply the current package to labelDynamic, so it can take
  this information into account instead of extracting it from the labels
  itself. This simplifies a lot of code in codeGen that just hands
  through this_pkg.
  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 117905 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/cvs-ghc/attachments/20070711/5d15a243/attachment-0001.bin


More information about the Cvs-ghc mailing list