[commit: ghc] master: Fixed for unregisterised Windows builds (45740c2)
Ian Lynagh
igloo at earth.li
Sun Mar 18 18:53:17 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/45740c29b24ea78b885d3b9f737a8bdc00265f7c
>---------------------------------------------------------------
commit 45740c29b24ea78b885d3b9f737a8bdc00265f7c
Author: Ian Lynagh <igloo at earth.li>
Date: Sun Mar 18 12:19:47 2012 +0000
Fixed for unregisterised Windows builds
>---------------------------------------------------------------
rts/PrimOps.cmm | 2 +-
rts/Schedule.c | 2 +-
rts/ghc.mk | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm
index 4cb3b8d..e368ed1 100644
--- a/rts/PrimOps.cmm
+++ b/rts/PrimOps.cmm
@@ -35,7 +35,7 @@ import base_ControlziExceptionziBase_nestedAtomically_closure;
import EnterCriticalSection;
import LeaveCriticalSection;
import ghczmprim_GHCziTypes_False_closure;
-#if !defined(mingw32_HOST_OS)
+#if defined(GhcUnregisterised) || !defined(mingw32_HOST_OS)
import sm_mutex;
#endif
diff --git a/rts/Schedule.c b/rts/Schedule.c
index c22b02d..aa22e06 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -611,7 +611,7 @@ schedulePreLoop(void)
{
// initialisation for scheduler - what cannot go into initScheduler()
-#if defined(mingw32_HOST_OS) && defined(i386_HOST_ARCH)
+#if defined(mingw32_HOST_OS) && defined(i386_HOST_ARCH) && !defined(GhcUnregisterised)
win32AllocStack();
#endif
}
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 9eb933e..e5fff56 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -313,6 +313,8 @@ rts/RtsUtils_CC_OPTS += -DGhcEnableTablesNextToCode=\"$(GhcEnableTablesNextToCod
ifeq "$(GhcUnregisterised)" "YES"
rts/HeapStackCheck_HC_OPTS += -DGhcUnregisterised=1
+rts/PrimOps_HC_OPTS += -DGhcUnregisterised=1
+rts/Schedule_CC_OPTS += -DGhcUnregisterised=1
endif
# Compile various performance-critical pieces *without* -fPIC -dynamic
More information about the Cvs-ghc
mailing list