From 8e254548bdb58cb61251dbb4fc032d4e639c17c1 Mon Sep 17 00:00:00 2001
From: Stephen Blackheath <docks.cattlemen.stephen@blacksapphire.com>
Date: Wed, 16 Jan 2013 14:28:42 +1300
Subject: [PATCH] MachRegs.h requires ghcautoconf.h to be included before it,
 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 file changed, 1 insertion(+)

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
 #endif
 import Reg
 
+#include "ghcautoconf.h"
 #include "stg/MachRegs.h"
 
 #if MACHREGS_i386 || MACHREGS_x86_64
-- 
1.7.10.4

