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

--- Comment #5 from Sainan <sainan+gcc.bugzilla at calamity dot gg> ---
(In reply to Wilco from comment #4)
> The atomic will also set correct struct alignment.

My thinking was that maybe this is not the case (= standard library issue)
since both GCC and Clang seem to be causing this issue, but manually adding
alignas(16) also didn't help.

> You would get a crash if you build for LSE so you get a LDADDAL instruction
> and then run it on a CPU that doesn't. So try -mcpu=native and it should
> work.

-mcpu=native didn't fix the SIGBUS, only removed __aarch64_ldadd4_acq_rel from
the stack trace.

FWIW, the CPU on this system where I get the SIGBUS is Cortex-A76, which should
support LSE and atomics, but it seems everytime it encounters atomics, it just
throws a SIGBUS. It works fine on Snapdragon 8cx Gen 3.

Reply via email to