https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104338
Bug ID: 104338
Summary: RISC-V: Subword atomics result in library calls
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: palmer at gcc dot gnu.org
Target Milestone: ---
There's a handful of bugs sort of related to this one, but nothing specific.
This has been a long-standing issue and I think folks are generally familiar
with it, but just to summarize: we don't have sub-word atomic instruction in
RISC-V, so we just call out to the libatomic routines. This causes fallout in
a handful of places (see 86005 and 81358, for example) and there's been some
attempts to resolve it but nothing appears to have stuck.
I figured it'd be a good starter project for Patrick, as he's yet to do any GCC
stuff. He's working through it and doesn't have anything to post yet, but
figured I'd just open the bug now so folks knew what was going on from our end.