summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2017-11-02 13:34:41 -0400
committerBen Gamari <ben@smart-cactus.org>2017-11-02 14:32:57 -0400
commitbd765f4b1332b3d2a7908de3f9ff1d50da0e0b1d (patch)
tree7e2c829a2a4eeb046f0268deeb92950dcad44c6d /Makefile
parentcbd6a4d05bf382641b108347218dfd534dc57558 (diff)
downloadhaskell-bd765f4b1332b3d2a7908de3f9ff1d50da0e0b1d.tar.gz
Fix atomicread/write operations
In `libraries/ghc-prim/cbits/atomic.c` no barriers were issued for atomic read and write operations. Starting with gcc 4.7 compiler intrinsics are offered. The atomic intrinisics are also available in clang. Use these to implement `hs_atomicread*` and `hs_atomicwrite`. Test Plan: validate on OSX and Windows Reviewers: austin, bgamari, simonmar, hvr, erikd, dfeuer Reviewed By: bgamari Subscribers: dfeuer, rwbarton, thomie GHC Trac Issues: #14244 Differential Revision: https://phabricator.haskell.org/D4009
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions