[project @ 2005-01-13 16:07:33 by simonmar]
authorsimonmar <unknown>
Thu, 13 Jan 2005 16:07:33 +0000 (16:07 +0000)
committersimonmar <unknown>
Thu, 13 Jan 2005 16:07:33 +0000 (16:07 +0000)
Instead of defining NO_REGS when IN_STG_CODE==0, define
NO_GLOBAL_REG_DECLS instead.

This means that in non-STG code we can still get at the values of
REG_R1 & co., even though the global register decls are turned off.
This is necessary because we sometimes need to set up different stack
layouts depending on REG_R1.

ghc/includes/Stg.h

index 924610c..dcc66d8 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.64 2004/09/02 12:45:25 simonmar Exp $
+ * $Id: Stg.h,v 1.65 2005/01/13 16:07:33 simonmar Exp $
  *
  * (c) The GHC Team, 1998-2004
  *
@@ -35,9 +35,7 @@
 #endif
 
 #if IN_STG_CODE == 0
-# ifndef NO_REGS
-#  define NO_REGS                      /* don't define fixed registers */
-# endif
+# define NO_GLOBAL_REG_DECLS   /* don't define fixed registers */
 #endif
 
 /* Configuration */