[project @ 2000-08-02 14:13:26 by rrt]
authorrrt <unknown>
Wed, 2 Aug 2000 14:13:28 +0000 (14:13 +0000)
committerrrt <unknown>
Wed, 2 Aug 2000 14:13:28 +0000 (14:13 +0000)
commit567b2505b2d3d5874f3bf3641fd8d82b3207ea94
tree5a08b25955d71684e8ee465517166914ab7db6a9
parentc0339ba160f9846aa0d712ca5d2b8fd1e35582f4
[project @ 2000-08-02 14:13:26 by rrt]
Many fixes to DLLisation. These were previously covered up because code was
leaking into the import libraries for DLLs, so the fact that some symbols
were thought of as local rather than in another DLL wasn't a problem.

The main problems addressed by this commit are:

1. Fixes RTS symbols working properly when DLLised. They didn't before.
2. Uses NULL instead of stg_error_entry, because DLL entry points can't be
   used as static initialisers.
3. PrelGHC.hi-boot changed to be in package RTS, and export of PrelNum and
   PrelErr moved to PrelBase, so that references to primops & the like
   are cross-DLL as they should be.
4. Pass imports around as Modules rather than ModuleNames, so that
   ModuleInitLabels can be checked to see if they're in a DLL or not.
15 files changed:
ghc/compiler/absCSyn/AbsCSyn.lhs
ghc/compiler/absCSyn/CLabel.lhs
ghc/compiler/absCSyn/PprAbsC.lhs
ghc/compiler/basicTypes/Name.lhs
ghc/compiler/codeGen/CgCase.lhs
ghc/compiler/codeGen/CodeGen.lhs
ghc/compiler/rename/Rename.lhs
ghc/compiler/rename/RnEnv.lhs
ghc/includes/Makefile
ghc/includes/StgMacros.h
ghc/includes/StgMiscClosures.h
ghc/lib/std/Makefile
ghc/lib/std/PrelBase.lhs
ghc/lib/std/PrelGHC.hi-boot
ghc/rts/StgMiscClosures.hc