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).