
#15207: bad dwarf frame in stgRun.c when compiled with with gcc on mac and assembled by as/gcc/clang (aka apple clang assembler) -------------------------------------+------------------------------------- Reporter: carter | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: 8.6.1 Component: Runtime System | Version: 8.4.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4781 Wiki Page: | -------------------------------------+------------------------------------- Comment (by awson): Don't know anything about Apple's clang, but exactly the same way behaves Windows msvc‑abi‑targeted clang – it inserts nothing. Generally, clang is able to mimic both gcc behaviour *and* native platform toolset behavior, and tries to be gcc compatible when targeting gnu triplet and native toolset compatible when targeting native triplet. Thus, I believe changing `#if defined(__clang__)` to `#if defined(__clang__) && !defined (__GNUC__)` should suffice. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15207#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler