
#11211: Please add initial platform support for sparc64 ----------------------------------------+------------------------------ Reporter: glaubitz | Owner: Type: bug | Status: patch Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Other Type of failure: Building GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------------+------------------------------ Comment (by glaubitz): So, I did a git-grep and I don't think the other occurences are relevant for sparc64. For one, compiler/main/DriverPipeline.hs has several tests for ArchSPARC and then passes -mcpu=v9 to gcc which is irrelevant for sparc64 which always defaults -mcpu to "v9" unlike sparc which, by default, matches to -mcpu=v8. The other occurences in question are in libraries/ghci/GHCi/InfoTable.hsc. However, since there is no NGC on sparc64 (yet), I don't think ghci is supported at all, is it? My understanding is that ghci always requires NGC support but I might be wrong. The mention in compiler/llvmGen/LlvmCodeGen/CodeGen.hs seems to apply for NGC-suppored architectures only as well, is it? Basically, my patches just add the necessary changes to make sparc64 known to ghc analog to https://git.haskell.org/ghc.git/commitdiff/9756690fe7aa26aee6955d0b720377d53..., plus the SPARC-related change https://git.haskell.org/ghc.git/commitdiff/3b322660f82d0c7c4f7d02523367ebd0e... which enforces -no-relax. NGC will add some additional mentions of ArchSPARC64 in code in the future. And since GHC's current NGC for SPARC already implements the SPARC V9 ISA but just with 32-bit pointers, it shouldn't be too difficult to add NGC to sparc64 in the future. The current SPARC NGC probably just needs to extended or cloned plus modified for 64-bit pointers. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11211#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler