• Ben Gamari's avatar
    ghc-prim: Emulate C11 atomics when not available · 7a3a7ee9
    Ben Gamari authored
    GCC's __sync primitives apparently "usually" imply a full barrier,
    meaning they can be used to emulate the more precise C11 atomics albeit
    with a loss of efficiency. This restores compatibility with GCC 4.4.
    This partially reverts commit 59de2909.
    Test Plan: Validate on Centos
    Reviewers: hvr, simonmar, trommler
    Subscribers: rwbarton, thomie, erikd, carter
    GHC Trac Issues: #14244
    Differential Revision: https://phabricator.haskell.org/D4364
    (cherry picked from commit 217e4170)
config.mk.in 30.1 KB