[Bug c/65146] alignment of _Atomic structure member is not correct

2015-02-20 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65146 --- Comment #3 from joseph at codesourcery dot com --- It's quite possible there are x86 struct bugs, cf. and .

[Bug c/65146] alignment of _Atomic structure member is not correct

2015-02-20 Thread alexey.lapshin at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65146 --- Comment #2 from Alexey Lapshin --- if alignment of atomic object less then it`s size then it could not be lock-free on x86 32. If that object would split across cache lines then the operation would not be atomic. At the same time compiler re

[Bug c/65146] alignment of _Atomic structure member is not correct

2015-02-20 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65146 --- Comment #1 from joseph at codesourcery dot com --- On Fri, 20 Feb 2015, alexey.lapshin at oracle dot com wrote: > Alignment of single _Atomic object match with documentation : > https://gcc.gnu.org/wiki/Atomic/GCCMM/UnalignedPolicy . That'