Fix for unregisterised compilation: we want registers when defined(USE_MINIINTERPRETER)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 4 Jan 2012 15:14:31 +0000 (15:14 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 5 Jan 2012 15:20:17 +0000 (15:20 +0000)
Needed by #5357

rts/StgCRun.c

index 89aa0a3..c302efb 100644 (file)
@@ -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.
  */