[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread sainan+gcc.bugzilla at calamity dot gg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 --- Comment #9 from Sainan --- (In reply to Wilco from comment #8) > So it's unaligned then, and that's not supported. And you're lucky your > specific alignment happens to work on v8.4 cores - it would fail for other > offsets. I'd say

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 --- Comment #8 from Wilco --- (In reply to Sainan from comment #7) > (In reply to Wilco from comment #6) > > That does not make any sense. The only thing I think might happen is that > > your structure is not correctly aligned (for example by

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread sainan+gcc.bugzilla at calamity dot gg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 --- Comment #7 from Sainan --- (In reply to Wilco from comment #6) > That does not make any sense. The only thing I think might happen is that > your structure is not correctly aligned (for example by using a custom > memory allocator). Can you

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 --- Comment #6 from Wilco --- (In reply to Sainan from comment #5) > (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) >

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread sainan+gcc.bugzilla at calamity dot gg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 --- Comment #5 from Sainan --- (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

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 --- Comment #4 from Wilco --- (In reply to Sainan from comment #3) > I seem to be having a related issue, although in my case the struct looks > like this: > > template > struct Data > { > T* data; > std::atomic_uint count; > bool

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2024-04-04 Thread sainan+gcc.bugzilla at calamity dot gg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 Sainan changed: What|Removed |Added CC||sainan+gcc.bugzilla@calamit

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2023-09-07 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 Wilco changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- Comment #2 from

[Bug middle-end/110773] [Aarch64] crash (SIGBUS) due to atomic instructions on under-aligned memory

2023-07-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110773 Andrew Pinski changed: What|Removed |Added Component|target |middle-end --- Comment #1 from Andrew