[commit: ghc] master: Deprecate lnat, and use StgWord instead (41737f1)
Simon Marlow
marlowsd at gmail.com
Fri Sep 7 16:34:19 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/41737f12f99c9ea776f7658b93e5b03ffc8f120b
>---------------------------------------------------------------
commit 41737f12f99c9ea776f7658b93e5b03ffc8f120b
Author: Simon Marlow <marlowsd at gmail.com>
Date: Fri Sep 7 13:55:11 2012 +0100
Deprecate lnat, and use StgWord instead
lnat was originally "long unsigned int" but we were using it when we
wanted a 64-bit type on a 64-bit machine. This broke on Windows x64,
where long == int == 32 bits. Using types of unspecified size is bad,
but what we really wanted was a type with N bits on an N-bit machine.
StgWord is exactly that.
lnat was mentioned in some APIs that clients might be using
(e.g. StackOverflowHook()), so we leave it defined but with a comment
to say that it's deprecated.
ghc/hschooks.c | 2 +-
includes/mkDerivedConstants.c | 2 +-
includes/rts/Hooks.h | 6 ++--
includes/rts/SpinLock.h | 2 +-
includes/rts/Types.h | 6 ++-
includes/rts/storage/ClosureMacros.h | 8 ++--
includes/rts/storage/GC.h | 4 +-
includes/rts/storage/MBlock.h | 6 ++--
rts/Arena.c | 2 +-
rts/Capability.h | 2 +-
rts/Disassembler.c | 2 +-
rts/FrontPanel.c | 2 +-
rts/FrontPanel.h | 2 +-
rts/Linker.c | 8 ++--
rts/Messages.c | 10 +++---
rts/Printer.c | 14 ++++----
rts/ProfHeap.c | 2 +-
rts/Profiling.c | 2 +-
rts/RetainerProfile.c | 4 +-
rts/RetainerProfile.h | 2 +-
rts/RtsFlags.c | 2 +-
rts/RtsUtils.c | 2 +-
rts/Schedule.c | 4 +-
rts/Stats.c | 34 ++++++++++----------
rts/Stats.h | 4 +-
rts/Threads.c | 8 ++--
rts/Trace.c | 46 +++++++++++++-------------
rts/Trace.h | 44 +++++++++++++-------------
rts/eventlog/EventLog.c | 20 ++++++------
rts/eventlog/EventLog.h | 20 ++++++------
rts/hooks/MallocFail.c | 2 +-
rts/hooks/OutOfHeap.c | 2 +-
rts/hooks/StackOverflow.c | 2 +-
rts/parallel/ParTicky.c | 4 +-
rts/posix/OSMem.c | 12 +++---
rts/sm/BlockAlloc.c | 6 ++--
rts/sm/BlockAlloc.h | 4 +-
rts/sm/Evac.h | 2 +-
rts/sm/GC.c | 22 ++++++------
rts/sm/GCThread.h | 18 +++++-----
rts/sm/GCUtils.c | 2 +-
rts/sm/MBlock.c | 6 ++--
rts/sm/OSMem.h | 4 +-
rts/sm/Sanity.c | 10 +++---
rts/sm/Scav.c | 8 ++--
rts/sm/Storage.c | 58 +++++++++++++++++-----------------
rts/sm/Storage.h | 24 +++++++-------
rts/win32/OSMem.c | 30 +++++++++---------
48 files changed, 245 insertions(+), 243 deletions(-)
Diff suppressed because of size. To see it, use:
git show 41737f12f99c9ea776f7658b93e5b03ffc8f120b
More information about the Cvs-ghc
mailing list