[project @ 1998-10-21 11:28:00 by sof]
- added primops for read&writing StablePtrs to ByteArrays, Adds and FOs - egcs crashes in odd ways when encountering the typedefs we need to produce when compiling 'foreign import dynamic's. To workaround the problem, kludgily add a CCallTypedef constructor to AbsCSyn.AbstractC which the flattener will produce (at the toplevel) when encountering CCallOps inside COptStmts. - augmented PrimOp.CCallOp to carry a unique when it represents a 'foreign import dynamic' call. The CoreToStg pass ensures that these uniques are exactly that. They're used to eventuall generate (unique) typedef names.
Showing
- ghc/compiler/absCSyn/AbsCSyn.lhs 11 additions, 0 deletionsghc/compiler/absCSyn/AbsCSyn.lhs
- ghc/compiler/absCSyn/AbsCUtils.lhs 11 additions, 0 deletionsghc/compiler/absCSyn/AbsCUtils.lhs
- ghc/compiler/absCSyn/PprAbsC.lhs 45 additions, 5 deletionsghc/compiler/absCSyn/PprAbsC.lhs
- ghc/compiler/deSugar/DsCCall.lhs 1 addition, 1 deletionghc/compiler/deSugar/DsCCall.lhs
- ghc/compiler/deSugar/DsForeign.lhs 4 additions, 6 deletionsghc/compiler/deSugar/DsForeign.lhs
- ghc/compiler/nativeGen/StixPrim.lhs 1 addition, 1 deletionghc/compiler/nativeGen/StixPrim.lhs
- ghc/compiler/prelude/PrimOp.lhs 143 additions, 102 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/compiler/prelude/TysPrim.lhs 3 additions, 0 deletionsghc/compiler/prelude/TysPrim.lhs
- ghc/compiler/stgSyn/CoreToStg.lhs 11 additions, 2 deletionsghc/compiler/stgSyn/CoreToStg.lhs
- ghc/compiler/typecheck/TcIfaceSig.lhs 1 addition, 1 deletionghc/compiler/typecheck/TcIfaceSig.lhs
Loading
Please register or sign in to comment