cvs commit: fptools/ghc/compiler/prelude primops.txt

Sven Panne Sven.Panne@informatik.uni-muenchen.de
Thu, 30 Nov 2000 22:32:40 +0100


Simon Marlow wrote:
> simonmar    2000/11/27 01:27:02 PST
> 
>   Modified files:        (Branch: before-ghci-branch)
>     ghc/compiler/prelude primops.txt
>   Log:
>   add set{Ptr,Word}OffClosure# for the interpreter
> 
>   Revision  Changes    Path
>   1.5.2.2   +8 -1      fptools/ghc/compiler/prelude/primops.txt

Hmmm, my last before-ghci-branch compilation failed with

   ../../../ghc/driver/ghc-inplace -recomp -cpp -fglasgow-exts-no-lang -fvia-C -Rghc-timing -O -package-name std -static -split-objs  -H12m  -c PrelBase.lhs -o PrelBase.o -osuf o

   PrelBase.lhs:78:
       Failed to find interface decl for `setDoubleOffClosure#'
       from module `PrelGHC'

Wild guess (untested, GHC is still re-compiling most modules,
*sigh*...):

=========================================================================
diff -u -r1.5.2.2 primops.txt
--- primops.txt	2000/11/27 09:27:02	1.5.2.2
+++ primops.txt	2000/11/30 21:12:22
@@ -59,6 +59,10 @@
    a -> Int# -> Word# -> (# a #)
    with strictness = { \ arity -> StrictnessInfo [wwStrict, wwPrim, wwPrim] False }
 
+primop   SetOffClosureOp_Double "setDoubleOffClosure#"  GenPrimOp
+   a -> Int# -> Double# -> (# a #)
+   with strictness = { \ arity -> StrictnessInfo [wwStrict, wwPrim, wwPrim] False }
+
 ------------------------------------------------------------------------
 --- Addr#                                                            ---
 ------------------------------------------------------------------------
=========================================================================

I think the current branch-o-mania is getting a little bit out of
control...   :-}

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:Sven.Panne@informatik.uni-muenchen.de            D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne