[Bug libgcc/105708] libgcc: aarch64: init_lse_atomics can race with user-defined constructors
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 24 00:00:32 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105708
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There is no correctness issue here either since the check for atomics always
fall back to ll/sc style atomics if init_have_lse_atomics has not been run.
Once init_have_lse_atomics runs then it will use the ARMv8.1-a LSE atomics but
both are correct and still valid to use.
There are some use cases in even in userspace where you want to use both style
atomics (mostly with wfe really).
More information about the Gcc-bugs
mailing list