[commit: ghc] master: ghci: Include "Rts.h" before using TABLES_NEXT_TO_CODE (366182a)

git at git.haskell.org git at git.haskell.org
Mon Oct 16 23:14:38 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/366182af1860fd1312007ffe8bedfd0d12d1c171/ghc

>---------------------------------------------------------------

commit 366182af1860fd1312007ffe8bedfd0d12d1c171
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon Oct 16 17:36:14 2017 -0400

    ghci: Include "Rts.h" before using TABLES_NEXT_TO_CODE
    
    Reviewers: austin
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D4088


>---------------------------------------------------------------

366182af1860fd1312007ffe8bedfd0d12d1c171
 libraries/ghci/GHCi/InfoTable.hsc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libraries/ghci/GHCi/InfoTable.hsc b/libraries/ghci/GHCi/InfoTable.hsc
index c553897..d650e24 100644
--- a/libraries/ghci/GHCi/InfoTable.hsc
+++ b/libraries/ghci/GHCi/InfoTable.hsc
@@ -1,5 +1,8 @@
 {-# LANGUAGE CPP, MagicHash, ScopedTypeVariables #-}
 
+-- Get definitions for the structs, constants & config etc.
+#include "Rts.h"
+
 -- |
 -- Run-time info table support.  This module provides support for
 -- creating and reading info tables /in the running program/.
@@ -24,9 +27,6 @@ import System.IO.Unsafe -- needed for 2nd stage
 
 type ItblCodes = Either [Word8] [Word32]
 
--- Get definitions for the structs, constants & config etc.
-#include "Rts.h"
-
 -- Ultra-minimalist version specially for constructors
 #if SIZEOF_VOID_P == 8
 type HalfWord = Word32



More information about the ghc-commits mailing list