cvs commit: fptools/ghc/compiler/deSugar DsCCall.lhs DsForeign.lhs

Simon Marlow simonmar@glass.cse.ogi.edu
Thu, 3 May 2001 07:31:58 -0700


simonmar    2001/05/03 07:31:58 PDT

  Modified files:
    ghc/compiler/deSugar DsCCall.lhs DsForeign.lhs 
  Log:
  Arrange to call touch# on each ForeignObj# argument after a 'safe'
  foreign import call.
  
  This turned out to be the easiest place to implement it: if we'd done
  it in CorePrep or CoreToStg, it would have been awkward to generate
  the simplest code.  At least doing it in the desugarer gives the
  simplifier a crack at it later.
  
  Revision  Changes    Path
  1.46      +44 -16    fptools/ghc/compiler/deSugar/DsCCall.lhs
  1.49      +16 -7     fptools/ghc/compiler/deSugar/DsForeign.lhs