[commit: ghc] ghc-7.4: Fix for unregisterised compilation: we want registers when defined(USE_MINIINTERPRETER) (8a9d80e)

Ian Lynagh igloo at earth.li
Fri Jan 6 14:20:52 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : ghc-7.4

http://hackage.haskell.org/trac/ghc/changeset/8a9d80eb2816b460c8d1cffd1d36e978e9d14d7c

>---------------------------------------------------------------

commit 8a9d80eb2816b460c8d1cffd1d36e978e9d14d7c
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Wed Jan 4 15:14:31 2012 +0000

    Fix for unregisterised compilation: we want registers when defined(USE_MINIINTERPRETER)
    
    Needed by #5357

>---------------------------------------------------------------

 rts/StgCRun.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rts/StgCRun.c b/rts/StgCRun.c
index 89aa0a3..c302efb 100644
--- a/rts/StgCRun.c
+++ b/rts/StgCRun.c
@@ -29,7 +29,7 @@
 #include "PosixSource.h"
 #include "ghcconfig.h"
 
-#ifdef sparc_HOST_ARCH
+#if defined(sparc_HOST_ARCH) || defined(USE_MINIINTERPRETER)
 /* include Stg.h first because we want real machine regs in here: we
  * have to get the value of R1 back from Stg land to C land intact.
  */





More information about the Cvs-ghc mailing list