From 68e430022a8c6b634f65edda1918a3fc3dc9acdf Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 13 Jan 2005 16:07:33 +0000 Subject: [PATCH] [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. --- ghc/includes/Stg.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 */ -- 1.7.10.4