[GHC] #7608: LLVM only handles a hard-coded list of triples. (was: Triple not passed to LLVM when cross-compiling)
GHC
cvs-ghc at haskell.org
Thu Jan 31 20:00:13 CET 2013
#7608: LLVM only handles a hard-coded list of triples.
-------------------------------------+--------------------------------------
Reporter: singpolyma | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (LLVM) | Version: 7.7
Keywords: cross-compiling llvm | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: GHC doesn't work at all
Difficulty: Unknown | Testcase:
Blockedby: | Blocking: 7610
Related: |
-------------------------------------+--------------------------------------
Old description:
> First found in http://www.haskell.org/pipermail/cvs-
> ghc/2012-December/079115.html
>
> When cross-compiling to a different architecture, LLVM is not informed
> what architecture we are building for, and so generates code for the host
> architecture instead.
New description:
LLVM simply has a hard-coded list of triples for supported platforms in
compiler/llvmGen/LlvmCodeGen/Ppr.hs :: moduleLayout.
Apparently this information can potentially be sourced by configure /
autotools instead. This may be a better way forward rather than adding
code for each platform.
--
Comment(by dterei):
Yes, I've been meaning to update this bug. Doing now.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7608#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list