[project @ 2001-10-17 11:50:38 by simonpj]
authorsimonpj <unknown>
Wed, 17 Oct 2001 11:50:38 +0000 (11:50 +0000)
committersimonpj <unknown>
Wed, 17 Oct 2001 11:50:38 +0000 (11:50 +0000)
commit670e5f97ce7367ce47ac13164eca98cd2d1e853a
tree4cf8fe0a244115acff5ac0c1e290f52ab807959e
parentfd94f66371dfd4a2c6694d933374a3a5aa7bd7b4
[project @ 2001-10-17 11:50:38 by simonpj]
--------------------------
nullAddr# fix for the HEAD
  [missed one file]
--------------------------

*** DO NOT MERGE ***

nullAddr# is simply a name for (Lit nullAddrLit).  Up
to now it has been a PrimOp with the rather stange type
nullAddr# :: Int# -> Addr#
which discards its argument.  (I think the problem with
nullary primops is to do with the top-level bindings in
PrelPrimOpWrappers.)   And there was a RULE in PrelRules
to rewrite
nullAddr _ ==> nullAddrLit

It's excessive to make it a PrimOp.  We can just treat it
like unsafeCoerce#, which is made in MkId.lhs.   So I've
done that, and given it the more sensible type
nullAddr# :: Addr#

I fixed all the occurrences I could find.
ghc/compiler/nativeGen/StixPrim.lhs