summaryrefslogtreecommitdiff
path: root/ghc/compiler/codeGen
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-08-29 15:44:23 +0000
committersimonmar <unknown>2002-08-29 15:44:23 +0000
commitce9687a5f450014c5596b32de8e8a7b99b6389e8 (patch)
tree718993a94d5e2b03bae392f4b3b4710814c3c4d8 /ghc/compiler/codeGen
parent4a851c8281491a26ce130e6ce4496042e3feb42b (diff)
downloadhaskell-ce9687a5f450014c5596b32de8e8a7b99b6389e8.tar.gz
[project @ 2002-08-29 15:44:11 by simonmar]
Housekeeping: - The main goal is to remove dependencies on hslibs for a bootstrapped compiler, leaving only a requirement that the packages base, haskell98 and readline are built in stage 1 in order to bootstrap. We're almost there: Posix is still required for signal handling, but all other dependencies on hslibs are now gone. Uses of Addr and ByteArray/MutableByteArray array are all gone from the compiler. PrimPacked defines the Ptr type for GHC 4.08 (which didn't have it), and it defines simple BA and MBA types to replace uses of ByteArray and MutableByteArray respectively. - Clean up import lists. HsVersions.h now defines macros for some modules which have moved between GHC versions. eg. one now imports 'GLAEXTS' to get at unboxed types and primops in the compiler. Many import lists have been sorted as per the recommendations in the new style guidelines in the commentary. I've built the compiler with GHC 4.08.2, 5.00.2, 5.02.3, 5.04 and itself, and everything still works here. Doubtless I've got something wrong, though.
Diffstat (limited to 'ghc/compiler/codeGen')
-rw-r--r--ghc/compiler/codeGen/CgHeapery.lhs5
-rw-r--r--ghc/compiler/codeGen/CgStackery.lhs10
-rw-r--r--ghc/compiler/codeGen/CodeGen.lhs2
3 files changed, 8 insertions, 9 deletions
diff --git a/ghc/compiler/codeGen/CgHeapery.lhs b/ghc/compiler/codeGen/CgHeapery.lhs
index a040d32c00..3b3c403eaa 100644
--- a/ghc/compiler/codeGen/CgHeapery.lhs
+++ b/ghc/compiler/codeGen/CgHeapery.lhs
@@ -1,7 +1,7 @@
%
% (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
%
-% $Id: CgHeapery.lhs,v 1.31 2002/04/29 14:03:41 simonmar Exp $
+% $Id: CgHeapery.lhs,v 1.32 2002/08/29 15:44:13 simonmar Exp $
%
\section[CgHeapery]{Heap management functions}
@@ -31,12 +31,13 @@ import ClosureInfo ( closureSize, closureGoodStuffSize,
import PrimRep ( PrimRep(..), isFollowableRep )
import Unique ( Unique )
import CmdLineOpts ( opt_GranMacros )
-import GlaExts
import Outputable
#ifdef DEBUG
import PprAbsC ( pprMagicId ) -- tmp
#endif
+
+import GLAEXTS
\end{code}
%************************************************************************
diff --git a/ghc/compiler/codeGen/CgStackery.lhs b/ghc/compiler/codeGen/CgStackery.lhs
index a75b7e7583..cae8586b7c 100644
--- a/ghc/compiler/codeGen/CgStackery.lhs
+++ b/ghc/compiler/codeGen/CgStackery.lhs
@@ -1,7 +1,7 @@
%
% (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
%
-% $Id: CgStackery.lhs,v 1.20 2001/10/03 13:57:42 simonmar Exp $
+% $Id: CgStackery.lhs,v 1.21 2002/08/29 15:44:13 simonmar Exp $
%
\section[CgStackery]{Stack management functions}
@@ -27,12 +27,10 @@ import AbsCUtils ( mkAbstractCs, getAmodeRep )
import PrimRep ( getPrimRepSize, PrimRep(..), isFollowableRep )
import CmdLineOpts ( opt_SccProfilingOn, opt_GranMacros )
import Panic ( panic )
-import Constants ( uF_SIZE, pROF_UF_SIZE, gRAN_UF_SIZE,
- sEQ_FRAME_SIZE, pROF_SEQ_FRAME_SIZE,
- gRAN_SEQ_FRAME_SIZE )
-
+import Constants
import Util ( sortLt )
-import IOExts ( trace )
+
+import TRACE ( trace )
\end{code}
%************************************************************************
diff --git a/ghc/compiler/codeGen/CodeGen.lhs b/ghc/compiler/codeGen/CodeGen.lhs
index a8ce811cf0..76aa521612 100644
--- a/ghc/compiler/codeGen/CodeGen.lhs
+++ b/ghc/compiler/codeGen/CodeGen.lhs
@@ -57,7 +57,7 @@ import Panic ( assertPanic )
import Outputable
#endif
-import IOExts ( readIORef )
+import DATA_IOREF ( readIORef )
\end{code}
\begin{code}