https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80835
Peter Cordes <peter at cordes dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=70490 --- Comment #1 from Peter Cordes <peter at cordes dot ca> --- related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70490: lack of a way for CPUs to advertise when 16B SSE loads/stores are atomic, and that cmpxchg16b segfaults on mmap(PROT_READ), which is one of the reasons for not inlining cmpxchg16b (https://gcc.gnu.org/ml/gcc-patches/2017-01/msg02344.html) I tried to add a CC to Torvald Riegel, since a read-mostly pointer + ABA-counter maybe be a relevant use-case for 16-byte atomic objects, where the reads only want the current pointer value. Using locking for 16B objects would break this use-case.