[project @ 1999-11-09 15:57:39 by simonmar]
authorsimonmar <unknown>
Tue, 9 Nov 1999 15:57:42 +0000 (15:57 +0000)
committersimonmar <unknown>
Tue, 9 Nov 1999 15:57:42 +0000 (15:57 +0000)
Fix up some problems with the IN_STG_CODE macro.

ghc/includes/Regs.h
ghc/includes/Stg.h
ghc/includes/StgMacros.h
ghc/rts/HeapStackCheck.h

index 0cb2eb2..c683137 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Regs.h,v 1.6 1999/11/09 15:47:08 simonmar Exp $
+ * $Id: Regs.h,v 1.7 1999/11/09 15:57:39 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -63,7 +63,7 @@ typedef struct StgRegTable_ {
 extern DLL_IMPORT_RTS StgRegTable  MainRegTable;
 #endif
 
-#ifdef IN_STG_CODE
+#if IN_STG_CODE
 
 /*
  * Registers Hp and HpLim are global across the entire system, and are
@@ -519,7 +519,7 @@ GLOBAL_REG_DECL(bdescr *,CurrentNursery,REG_CurrentNursery)
    Handy bunches of saves/restores 
    ------------------------------------------------------------------------  */
 
-#ifdef IN_STG_CODE
+#if IN_STG_CODE
 
 #define CALLER_SAVE_USER                       \
   CALLER_SAVE_R1                               \
index f860a6e..c8d729d 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.20 1999/11/09 15:47:08 simonmar Exp $
+ * $Id: Stg.h,v 1.21 1999/11/09 15:57:40 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
  * with that.  If "Stg.h" is included via "Rts.h", we're assumed to
  * be in vanilla C.
  */
-#if ! IN_STG_CODE
+#ifndef IN_STG_CODE
+# define IN_STG_CODE 1
+#endif
+
+#if IN_STG_CODE == 0
 # ifndef NO_REGS
 #  define NO_REGS                      /* don't define fixed registers */
 # endif
-#else
-# define IN_STG_CODE 1
 #endif
 
 /* Configuration */
index aa3dbf0..9cfc6c6 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: StgMacros.h,v 1.17 1999/11/09 15:47:09 simonmar Exp $
+ * $Id: StgMacros.h,v 1.18 1999/11/09 15:57:40 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -681,7 +681,7 @@ extern DLL_IMPORT_DATA const StgPolyInfoTable seq_frame_info;
    we have one).
    -------------------------------------------------------------------------- */
 
-#ifdef IN_STG_CODE
+#if IN_STG_CODE
 
 static __inline__ void
 SaveThreadState(void)
index 1f2efee..939b425 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: HeapStackCheck.h,v 1.4 1999/08/25 16:11:48 simonmar Exp $
+ * $Id: HeapStackCheck.h,v 1.5 1999/11/09 15:57:42 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -8,6 +8,7 @@
  * ---------------------------------------------------------------------------*/
 
 EXTFUN(stg_gc_entertop);
+EXTFUN(stg_gc_enter_1_hponly);
 EXTFUN(stg_gc_enter_1);
 EXTFUN(stg_gc_enter_2);
 EXTFUN(stg_gc_enter_3);