[Bug libgcc/105708] libgcc: aarch64: init_lse_atomics can race with user-defined constructors

keno at juliacomputing dot com gcc-bugzilla@gcc.gnu.org
Tue May 24 00:03:51 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105708

--- Comment #3 from Keno Fischer <keno at juliacomputing dot com> ---
> I am going to close it as won't fix as the problem is with the rr emulator which needs to emulate ll/sc for correctness.

No currently shipping aarch64 chip provides hardware support that would allow
such a capability (believe me, we've tried and have and many conversations with
the hardware vendors about it). I would like to strongly request that the
WONTFIX be reconsidered here. It's a relatively simple fix, that should not
have any downsides. If this is not fixed upstream in libgcc then distributions
that want to provide rr will need to start patching libgcc downstream or find
another solution, which will just be a huge mess.


More information about the Gcc-bugs mailing list