[GHC] #13378: LLVM backend doesn't support MacOS dead code stripping

GHC ghc-devs at haskell.org
Tue Mar 20 02:29:14 UTC 2018


#13378: LLVM backend doesn't support MacOS dead code stripping
-------------------------------------+-------------------------------------
        Reporter:  angerman          |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:
      Resolution:  invalid           |             Keywords:
Operating System:  MacOS X           |         Architecture:  x86_64
 Type of failure:  Building GHC      |  (amd64)
  failed                             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by angerman):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 This actually made it upstream...

 https://github.com/llvm-
 mirror/llvm/commit/c7a57cdda643e397720daa35ea3b1c4b7ce42371

 However, the use of aliases in the llvm backend prevents llvm to properly
 insert the
 altEntry at the right place

 For macOS, the NCG does allow dead-stripping. For LLVM the llvm-ng backend
 allows deadstripping of mach-o files (macOS, iOS, ...)

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13378#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list