[GHC] #13866: -g doesn't work with -pgma=clang++

GHC ghc-devs at haskell.org
Mon Jun 26 21:26:03 UTC 2017


#13866: -g doesn't work with -pgma=clang++
---------------------------------+----------------------------------------
        Reporter:  niteria       |                Owner:  (none)
            Type:  bug           |               Status:  patch
        Priority:  normal        |            Milestone:  8.2.1
       Component:  Compiler      |              Version:  8.3
      Resolution:                |             Keywords:
Operating System:  Linux         |         Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):  Phab:D3667
       Wiki Page:                |
---------------------------------+----------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"904255eb9b537103898fb5f6b73df9b53ca7fd93/ghc"
 904255eb/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="904255eb9b537103898fb5f6b73df9b53ca7fd93"
 DWARF: Use .short to render half-machine-words

 The binutils documentation states that .short is a synonym for .word,
 which I assumed to mean "machine word", leading me to believe that we
 needed to use .hword to render half-machine-words. However, Darwin's
 toolchain doesn't understand .hword, so there we instead used .short.

 However, as it turns out the binutils documentation confusingly uses
 "word" to refer to a 16-bit word, so .short should work fine. Moreover,
 LLVM's internal assembler also doesn't understand .hword, so using
 .short consistently simplies things remarkably.

 Test Plan: Validate using binutils and LLVM internal assembler,
 validate on Darwin

 Reviewers: niteria, austin

 Reviewed By: niteria

 Subscribers: rwbarton, thomie

 GHC Trac Issues: #13866

 Differential Revision: https://phabricator.haskell.org/D3667
 }}}

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


More information about the ghc-tickets mailing list