summaryrefslogtreecommitdiff
path: root/ghc/includes/InfoTables.h
diff options
context:
space:
mode:
authorsebc <unknown>2001-12-18 19:42:41 +0000
committersebc <unknown>2001-12-18 19:42:41 +0000
commit6ed4dbcc5c63bbd87e053eaf368c3b0612997d36 (patch)
tree97593aae2642fbb133a89efc2c1c519f7553afb8 /ghc/includes/InfoTables.h
parentf5c974ce53f3670fd344c1f0f604e7e429e3c5da (diff)
downloadhaskell-6ed4dbcc5c63bbd87e053eaf368c3b0612997d36.tar.gz
[project @ 2001-12-18 19:42:41 by sebc]
THIS CHANGE AFFECTS ALL OBJECT FILES. Please say "make clean" Move the entry code pointer to the start of info tables, according to Plan C in ghc/rts/Storage.h
Diffstat (limited to 'ghc/includes/InfoTables.h')
-rw-r--r--ghc/includes/InfoTables.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/ghc/includes/InfoTables.h b/ghc/includes/InfoTables.h
index bfaa7d40d0..2e10e87379 100644
--- a/ghc/includes/InfoTables.h
+++ b/ghc/includes/InfoTables.h
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------------
- * $Id: InfoTables.h,v 1.23 2001/10/03 13:57:42 simonmar Exp $
+ * $Id: InfoTables.h,v 1.24 2001/12/18 19:42:41 sebc Exp $
*
* (c) The GHC Team, 1998-1999
*
@@ -206,7 +206,14 @@ typedef union {
typedef StgClosure* StgSRT[];
+/*
+ * The entry code pointer must be the first word of an info table.
+ * See the comment in ghc/rts/Storage.h (Plan C) for details.
+ */
typedef struct _StgInfoTable {
+#ifndef TABLES_NEXT_TO_CODE
+ StgFunPtr entry;
+#endif
StgSRT *srt; /* pointer to the SRT table */
#if defined(PAR) || defined(GRAN)
struct _StgInfoTable *rbh_infoptr;
@@ -231,7 +238,6 @@ typedef struct _StgInfoTable {
#ifdef TABLES_NEXT_TO_CODE
StgCode code[FLEXIBLE_ARRAY];
#else
- StgFunPtr entry;
StgFunPtr vector[FLEXIBLE_ARRAY];
#endif
} StgInfoTable;