toolchain: gcc: backport inline subword atomic support for riscv
authorTianling Shen <cnsztl@immortalwrt.org>
Sat, 10 Jun 2023 11:08:04 +0000 (19:08 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 16 Jun 2023 17:47:39 +0000 (19:47 +0200)
commit7390068e4f89e09d8fc281fddeb2504f5412382e
treeb86d988b12d1b9e57838fcea46768a192441b996
parentdee8ca626c7108540795506eb1675aff586d9066
toolchain: gcc: backport inline subword atomic support for riscv

RISC-V has no support for subword atomic operations; code currently
generates libatomic library calls.

This patch changes the default behavior to fast inline subword atomic
calls that do not require libatomic.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 7b4a966de88aa0e1f9b7faa62a4d6cb7b01e9f8f)
toolchain/gcc/patches-11.x/700-RISCV-Inline-subword-atomic-ops.patch [new file with mode: 0644]
toolchain/gcc/patches-11.x/701-riscv-linux-Don-t-add-latomic-with-pthread.patch [new file with mode: 0644]
toolchain/gcc/patches-11.x/910-mbsd_multi.patch
toolchain/gcc/patches-12.x/700-RISCV-Inline-subword-atomic-ops.patch [new file with mode: 0644]
toolchain/gcc/patches-12.x/701-riscv-linux-Don-t-add-latomic-with-pthread.patch [new file with mode: 0644]
toolchain/gcc/patches-12.x/910-mbsd_multi.patch
toolchain/gcc/patches-13.x/700-RISCV-Inline-subword-atomic-ops.patch [new file with mode: 0644]
toolchain/gcc/patches-13.x/701-riscv-linux-Don-t-add-latomic-with-pthread.patch [new file with mode: 0644]
toolchain/gcc/patches-13.x/910-mbsd_multi.patch