diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-10-26 08:56:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 08:56:37 +0000 |
commit | 2bc1c5309206169776bdcab862aa2b3da7fc8c95 (patch) | |
tree | 98141c08cd9ec0404b386a491e830a0132ca2855 /gcc/rust/lex/rust-codepoint.h | |
parent | 14c942c3eb060e063fd8142d390c6d09951bf544 (diff) | |
parent | 4d42744aa5d5778975d46ac9f5c945f9c7ec2ffa (diff) | |
download | gcc-2bc1c5309206169776bdcab862aa2b3da7fc8c95.zip gcc-2bc1c5309206169776bdcab862aa2b3da7fc8c95.tar.gz gcc-2bc1c5309206169776bdcab862aa2b3da7fc8c95.tar.bz2 |
Merge #1615
1615: intrinsics: Add early implementation for atomic_store_{seqcst, relaxed, release} r=CohenArthur a=CohenArthur
Needs #1614 so ignore the first commit
This commit adds support for three `atomic_store_*` intrinsics declared
in the core library. The mapping is as follows:
- atomic_store_seqcst(dst, val) -> __atomic_store_n(dst, val,
__ATOMIC_SEQ_CST)
- atomic_store_relaxed(dst, val) -> __atomic_store_n(dst, val,
__ATOMIC_RELAXED)
- atomic_store_release(dst, val) -> __atomic_store_n(dst, val,
__ATOMIC_RELEASE)
The one remaining question is whether `atomic_store_unordered` can be
abstracted as an atomic store with the __ATOMIC_RELAXED ordering.
This commit also performs the overloading "by hand": Replacing
`atomic_store_release<i32>` with `__atomic_store_4` as I cannot get the
generic version to work. This will be done in future improvements.
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/lex/rust-codepoint.h')
0 files changed, 0 insertions, 0 deletions