[commit: ghc] master: MachRegs.h requires ghcautoconf.h to be included before it (#7591) (8bb9548)

Simon Marlow marlowsd at gmail.com
Fri Feb 1 09:58:49 CET 2013

Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master



commit 8bb9548a991142137d13a8d77fb6f46ed2f49f4d
Author: Stephen Blackheath <docks.cattlemen.stephen at blacksapphire.com>
Date:   Wed Jan 16 14:28:42 2013 +1300

    MachRegs.h requires ghcautoconf.h to be included before it (#7591)
    Because, in the case of ARM processors, it needs to know what ARM
    variant is being used. This patch fixes that in
    includes/CodeGen.Platform.hs, otherwise there is a mismatch between
    the compiler and llvm.


 includes/CodeGen.Platform.hs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/includes/CodeGen.Platform.hs b/includes/CodeGen.Platform.hs
index b038f82..14642bd 100644
--- a/includes/CodeGen.Platform.hs
+++ b/includes/CodeGen.Platform.hs
@@ -6,6 +6,7 @@ import Panic
 import Reg
+#include "ghcautoconf.h"
 #include "stg/MachRegs.h"
 #if MACHREGS_i386 || MACHREGS_x86_64

More information about the ghc-commits mailing list