Opened 4 years ago

Closed 4 years ago

#5636 closed bug (fixed)

LLVM: popcnt instruction doesn't compile in LLVM 3.0

Reported by: dterei Owned by: dterei
Priority: normal Milestone:
Component: Compiler (LLVM) Version: 7.2.1
Keywords: Cc:
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: Compile-time crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

LLVM 3.0 compiles the popcnt instruction in a way unsupported by the Mac OSX system assembler. After talking to the LLVM folks it seems that they don't support the OSX system assembler anymore and suggested I use clang.

So this ticket is to track changing over to clang. Clang is included with OSX 10.6 and later.

Change History (2)

comment:1 Changed 4 years ago by davidterei@…

commit 11fcb10ad4d3499e60e278752001968134d7f4e4

Author: David Terei <[email protected]>
Date:   Mon Nov 21 03:01:32 2011 -0800

    Fix #5636: Use clang as assembler on OSX when LLVM >= 3.0
    
    LLVM doesn't support the OS X system assembler anymore so we must use
    their assembler through clang. Also improved error messages when various
    LLVM tools can't be run.

 compiler/main/DriverPipeline.hs |   18 ++++++++++++++++--
 compiler/main/DynFlags.hs       |    3 +--
 compiler/main/SysTools.lhs      |   27 ++++++++++++++++++++++++---
 3 files changed, 41 insertions(+), 7 deletions(-)

comment:2 Changed 4 years ago by dterei

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.