fix-hs_cmpxchg64
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Wed, 13 Dec 2023 10:28:47 +0000 (12:28 +0200)
committerIlias Tsitsimpis <iliastsi@debian.org>
Wed, 13 Dec 2023 10:28:47 +0000 (12:28 +0200)
commitd71aa6439469cecb33156d85d3228498e9f6e8de
tree28da51e2591ca855e89dcda67a99b2982800e183
parenta5720930da5f3110f50d0e77bd25c1dc641dea19
fix-hs_cmpxchg64

commit 9fa545722f9151781344446dd5501db38cb90dd1
Author: Cheng Shao <terrorjack@type.dance>
Date:   Mon Feb 27 19:11:27 2023 +0000

    ghc-prim: fix hs_cmpxchg64 function prototype

    hs_cmpxchg64 must return a StgWord64, otherwise incorrect runtime
    results of 64-bit MO_Cmpxchg will appear in 32-bit unregisterised
    builds, which go unnoticed at compile-time due to C implicit casting
    in .hc files.

Gbp-Pq: Name fix-hs_cmpxchg64
libraries/ghc-prim/cbits/atomic.c
rts/include/stg/Prim.h