From 63181f98a25fd8883c88ac7c89a471a02bb3f196 Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 5 Jun 1997 21:26:56 +0000 Subject: [PATCH] [project @ 1997-06-05 21:23:08 by sof] imports updated --- ghc/compiler/absCSyn/AbsCSyn.lhs | 7 +++++++ ghc/compiler/absCSyn/CLabel.lhs | 10 ++++++++++ ghc/compiler/absCSyn/CStrings.lhs | 2 +- ghc/compiler/absCSyn/HeapOffs.lhs | 6 +++++- ghc/compiler/absCSyn/PprAbsC.lhs | 8 +++++++- 5 files changed, 30 insertions(+), 3 deletions(-) diff --git a/ghc/compiler/absCSyn/AbsCSyn.lhs b/ghc/compiler/absCSyn/AbsCSyn.lhs index 96411a1..7ccf298 100644 --- a/ghc/compiler/absCSyn/AbsCSyn.lhs +++ b/ghc/compiler/absCSyn/AbsCSyn.lhs @@ -36,7 +36,14 @@ module AbsCSyn {- ( )-} where IMP_Ubiq(){-uitous-} +#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201 IMPORT_DELOOPER(AbsCLoop) +#else +import {-# SOURCE #-} MachMisc +import {-# SOURCE #-} CLabel +import {-# SOURCE #-} ClosureInfo +import {-# SOURCE #-} CgRetConv +#endif import Constants ( mAX_Vanilla_REG, mAX_Float_REG, mAX_Double_REG, lIVENESS_R1, lIVENESS_R2, diff --git a/ghc/compiler/absCSyn/CLabel.lhs b/ghc/compiler/absCSyn/CLabel.lhs index 603f0a0..9fedf64 100644 --- a/ghc/compiler/absCSyn/CLabel.lhs +++ b/ghc/compiler/absCSyn/CLabel.lhs @@ -48,11 +48,21 @@ module CLabel ( ) where IMP_Ubiq(){-uitous-} +#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201 IMPORT_DELOOPER(AbsCLoop) ( CtrlReturnConvention(..), ctrlReturnConvAlg ) +#else +import {-# SOURCE #-} CgRetConv +#endif + + #if ! OMIT_NATIVE_CODEGEN +#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201 IMPORT_DELOOPER(NcgLoop) ( underscorePrefix, fmtAsmLbl ) +#else +import {-# SOURCE #-} MachMisc ( underscorePrefix, fmtAsmLbl ) +#endif #endif import CStrings ( pp_cSEP ) diff --git a/ghc/compiler/absCSyn/CStrings.lhs b/ghc/compiler/absCSyn/CStrings.lhs index 964623a..c6beabf 100644 --- a/ghc/compiler/absCSyn/CStrings.lhs +++ b/ghc/compiler/absCSyn/CStrings.lhs @@ -14,11 +14,11 @@ module CStrings( ) where +IMPORT_1_3(Char (isAlphanum,ord,chr)) CHK_Ubiq() -- debugging consistency check import Pretty -IMPORT_1_3(Char (isAlphanum,ord,chr)) \end{code} diff --git a/ghc/compiler/absCSyn/HeapOffs.lhs b/ghc/compiler/absCSyn/HeapOffs.lhs index 5878e08..7d55046 100644 --- a/ghc/compiler/absCSyn/HeapOffs.lhs +++ b/ghc/compiler/absCSyn/HeapOffs.lhs @@ -33,7 +33,11 @@ module HeapOffs ( IMP_Ubiq(){-uitous-} #if ! OMIT_NATIVE_CODEGEN +# if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201 IMPORT_DELOOPER(AbsCLoop) ( fixedHdrSizeInWords, varHdrSizeInWords ) +# else +import {-# SOURCE #-} MachMisc +# endif #endif import Maybes ( catMaybes ) @@ -319,7 +323,7 @@ pprHeapOffsetPieces sty int_offs fxdhdr_offs varhdr_offs tothdr_offs where pp_hdrs hdr_pp [] = Nothing pp_hdrs hdr_pp [SMRI(rep, n)] | n _EQ_ ILIT(1) = Just ((<>) (text (show rep)) hdr_pp) - pp_hdrs hdr_pp hdrs = Just (parens (sep (punctuate (char '+') + pp_hdrs hdr_pp hdrs = Just (parens (hsep (punctuate (char '+') (map (pp_hdr hdr_pp) hdrs)))) pp_hdr :: Doc -> SMRep__Int -> Doc diff --git a/ghc/compiler/absCSyn/PprAbsC.lhs b/ghc/compiler/absCSyn/PprAbsC.lhs index 049ebd2..6d4f3ba 100644 --- a/ghc/compiler/absCSyn/PprAbsC.lhs +++ b/ghc/compiler/absCSyn/PprAbsC.lhs @@ -19,7 +19,7 @@ module PprAbsC ( ) where IMP_Ubiq(){-uitous-} -IMPORT_DELOOPER(AbsCLoop) -- break its dependence on ClosureInfo + IMPORT_1_3(IO(Handle)) IMPORT_1_3(Char(isDigit,isPrint)) #if __GLASGOW_HASKELL__ == 201 @@ -28,6 +28,12 @@ IMPORT_1_3(GHCbase(Addr(..)) ) -- to see innards import GlaExts (Addr(..)) #endif +#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 201 +IMPORT_DELOOPER(AbsCLoop) -- break its dependence on ClosureInfo +#else +import {-# SOURCE #-} ClosureInfo +#endif + import AbsCSyn import AbsCUtils ( getAmodeRep, nonemptyAbsC, -- 1.7.10.4