[project @ 2004-09-02 12:45:25 by simonmar]
authorsimonmar <unknown>
Thu, 2 Sep 2004 12:45:25 +0000 (12:45 +0000)
committersimonmar <unknown>
Thu, 2 Sep 2004 12:45:25 +0000 (12:45 +0000)
Rearrange so that Regs.h include comes before inline function
definitions.  I'm guessing that newer versions of gcc are less picky
about this, which is why we hadn't noticed it.

ghc/includes/Stg.h

index 12051e0..924610c 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.63 2004/08/13 13:09:30 simonmar Exp $
+ * $Id: Stg.h,v 1.64 2004/09/02 12:45:25 simonmar Exp $
  *
  * (c) The GHC Team, 1998-2004
  *
@@ -126,6 +126,26 @@ typedef StgWord StgWordArray[];
 #include "TailCalls.h"
 
 /* -----------------------------------------------------------------------------
+   Other Stg stuff...
+   -------------------------------------------------------------------------- */
+
+#include "StgDLL.h"
+#include "MachRegs.h"
+#include "Regs.h"
+#include "StgProf.h"  /* ToDo: separate out RTS-only stuff from here */
+
+#if IN_STG_CODE
+/*
+ * This is included later for RTS sources, after definitions of
+ * StgInfoTable, StgClosure and so on. 
+ */
+#include "StgMiscClosures.h"
+#endif
+
+/* RTS external interface */
+#include "RtsExternal.h"
+
+/* -----------------------------------------------------------------------------
    Moving Floats and Doubles
 
    ASSIGN_FLT is for assigning a float to memory (usually the
@@ -319,26 +339,6 @@ INLINE_HEADER StgInt64 PK_Int64(W_ p_src[])
 #endif
 
 /* -----------------------------------------------------------------------------
-   Other Stg stuff...
-   -------------------------------------------------------------------------- */
-
-#include "StgDLL.h"
-#include "MachRegs.h"
-#include "Regs.h"
-#include "StgProf.h"  /* ToDo: separate out RTS-only stuff from here */
-
-#if IN_STG_CODE
-/*
- * This is included later for RTS sources, after definitions of
- * StgInfoTable, StgClosure and so on. 
- */
-#include "StgMiscClosures.h"
-#endif
-
-/* RTS external interface */
-#include "RtsExternal.h"
-
-/* -----------------------------------------------------------------------------
    Split markers
    -------------------------------------------------------------------------- */