From: simonmar Date: Thu, 13 Jan 2005 16:07:33 +0000 (+0000) Subject: [project @ 2005-01-13 16:07:33 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1243 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=68e430022a8c6b634f65edda1918a3fc3dc9acdf;p=ghc-hetmet.git [project @ 2005-01-13 16:07:33 by simonmar] 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. --- diff --git a/ghc/includes/Stg.h b/ghc/includes/Stg.h index 924610c..dcc66d8 100644 --- a/ghc/includes/Stg.h +++ b/ghc/includes/Stg.h @@ -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 */