Restore the entry field in StgInfoTable when !defined(TABLES_NEXT_TO_CODE)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 19 Aug 2009 11:35:50 +0000 (11:35 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 19 Aug 2009 11:35:50 +0000 (11:35 +0000)
Somehow this got lost, probably in the recent RTS tidy-up.
Fixes segfaults in unregisterised compilation.

includes/rts/storage/InfoTables.h

index 4596ce2..c81e1e2 100644 (file)
@@ -214,6 +214,10 @@ typedef union {
  */
 typedef struct StgInfoTable_ {
 
+#ifndef TABLES_NEXT_TO_CODE
+    StgFunPtr       entry;     /* pointer to the entry code */
+#endif
+
 #ifdef PROFILING
     StgProfInfo     prof;
 #endif