diff options
author | Cheng Shao <terrorjack@type.dance> | 2023-04-05 03:13:27 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-04-24 12:19:44 -0400 |
commit | 87095f6a283d95016f66f4a14a3da923c394877c (patch) | |
tree | 3399b7d8655be5cc5fa443d4f6f5317a7532a42d /rts/include | |
parent | 787c6e8c5b96c95ead6cc7c213d12c5983975084 (diff) | |
download | haskell-87095f6a283d95016f66f4a14a3da923c394877c.tar.gz |
rts: always build 64-bit atomic ops
This patch does a few things:
- Always build 64-bit atomic ops in rts/ghc-prim, even on 32-bit
platforms
- Remove legacy "64bit" cabal flag of rts package
- Fix hs_xchg64 function prototype for 32-bit platforms
- Fix AtomicFetch test for wasm32
Diffstat (limited to 'rts/include')
-rw-r--r-- | rts/include/stg/Prim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/include/stg/Prim.h b/rts/include/stg/Prim.h index 9e5752584a..c4595cf4fd 100644 --- a/rts/include/stg/Prim.h +++ b/rts/include/stg/Prim.h @@ -53,7 +53,7 @@ void hs_atomicwrite64(StgWord x, StgWord64 val); StgWord hs_xchg8(StgWord x, StgWord val); StgWord hs_xchg16(StgWord x, StgWord val); StgWord hs_xchg32(StgWord x, StgWord val); -StgWord hs_xchg64(StgWord x, StgWord val); +StgWord64 hs_xchg64(StgWord x, StgWord64 val); /* libraries/ghc-prim/cbits/bswap.c */ StgWord16 hs_bswap16(StgWord16 x); |