Ticket #7591: 0001-MachRegs.h-requires-ghcautoconf.h-to-be-included-bef.patch

File 0001-MachRegs.h-requires-ghcautoconf.h-to-be-included-bef.patch, 872 bytes (added by StephenBlackheath, 15 months ago)
  • includes/CodeGen.Platform.hs

    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 b import Panic 
    66#endif 
    77import Reg 
    88 
     9#include "ghcautoconf.h" 
    910#include "stg/MachRegs.h" 
    1011 
    1112#if MACHREGS_i386 || MACHREGS_x86_64