[GHC] #7591: CodeGen.Platform.hs not including ghcautoconf.h as it should, breaks ARMv5 compiler

GHC cvs-ghc at haskell.org
Wed Jan 16 02:37:56 CET 2013


#7591: CodeGen.Platform.hs not including ghcautoconf.h as it should, breaks ARMv5
compiler
--------------------------------+-------------------------------------------
Reporter:  StephenBlackheath    |          Owner:                
    Type:  bug                  |         Status:  new           
Priority:  normal               |      Component:  Compiler      
 Version:  7.7                  |       Keywords:  arm cross llvm
      Os:  Unknown/Multiple     |   Architecture:  arm           
 Failure:  Building GHC failed  |      Blockedby:                
Blocking:                       |        Related:                
--------------------------------+-------------------------------------------
 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.

 Perhaps it needs to be made more robust by instead including ghcautoconf.h
 from MachRegs.h? Otherwise someone else could easily break it. I
 originally didn't do this, because it wasn't done anywhere else.

 Suggested fix attached.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7591>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list