[GHC] #9678: Warning about __sync_fetch_and_nand semantics from gcc

GHC ghc-devs at haskell.org
Tue Apr 24 16:08:53 UTC 2018


#9678: Warning about __sync_fetch_and_nand semantics from gcc
-------------------------------------+-------------------------------------
        Reporter:  gintas            |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  low               |            Milestone:  8.2.1
       Component:  Build System      |              Version:  7.9
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

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

 In [changeset:"e7322107d3647e5d3097eeca878e036b1c98557b/ghc"
 e7322107/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="e7322107d3647e5d3097eeca878e036b1c98557b"
 ghc-prim: Refactor and document __sync_fetch_and_nand workaround

 ed6f9fb9d5a684d2159c29633159c3254cf04deb reduced the scope of this hack
 to only include Clangs which actually lack __sync_fetch_and_nand.
 However, this causes GHC to fail to build with -Werror on Clang due to
 the lack of the -Wsync-nand warning flag. As it turns out a flag
 controlling the warning is available under a different name, however.

 Test Plan: Validate with Clang, GCC

 Subscribers: thomie, carter

 GHC Trac Issues: #9678

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

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


More information about the ghc-tickets mailing list