[GHC] #14977: Clang doesn't support -Wsync-nand

GHC ghc-devs at haskell.org
Mon Mar 26 16:28:29 UTC 2018


#14977: Clang doesn't support -Wsync-nand
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.4.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 94f02547083cf6df686ea0b95fed050184c533de added a `#pragma GCC diagnostic
 ignored "-Wsync-nand"` pragma to `libraries/ghc-prim/cbits/atomic.c` to
 silence `-Werror` failures due to GCC's non-actionable `-Wsync-nand`
 warning. Unfortunately goldfire reports that Apple's Clang chokes on this
 with,
 {{{
 libraries/ghc-prim/cbits/atomic.c:127:32: error: unknown warning group
       '-Wsync-nand', ignored [-Werror,-Wunknown-warning-option]
 }}}

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


More information about the ghc-tickets mailing list