From d53090a3ece2de59d89913186d560be30e2d8094 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 19 Aug 2009 11:35:50 +0000 Subject: [PATCH] Restore the entry field in StgInfoTable when !defined(TABLES_NEXT_TO_CODE) Somehow this got lost, probably in the recent RTS tidy-up. Fixes segfaults in unregisterised compilation. --- includes/rts/storage/InfoTables.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/rts/storage/InfoTables.h b/includes/rts/storage/InfoTables.h index 4596ce2..c81e1e2 100644 --- a/includes/rts/storage/InfoTables.h +++ b/includes/rts/storage/InfoTables.h @@ -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 -- 1.7.10.4