Commit 68e43002 authored by simonmar's avatar simonmar
Browse files

[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.
parent a689e22f
/* -----------------------------------------------------------------------------
* $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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment