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>
Sun, 11 Jun 2023 15:09:06 +0000 (17:09 +0200)
commit7b4a966de88aa0e1f9b7faa62a4d6cb7b01e9f8f
treecde3d5bfbb768fb8df09533d9bc1567cb97f278f
parent3baa45fbd82a78e597f8eb2bdd5005f4a0e29061
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>
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