[Bug c/98965] assignment to a struct with an atomic member not atomic

2021-02-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98965 --- Comment #5 from Martin Sebor --- I was thinking of the latter, i.e., splitting the assignment into a series of ordinary and atomic, the latter per member. The union case would be diagnosed (it too should be straightforward to detect). But

[Bug c/98965] assignment to a struct with an atomic member not atomic

2021-02-04 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98965 --- Comment #4 from joseph at codesourcery dot com --- The difficulty with making such an assignment atomic is that atomic operations for different sizes of atomic access don't interoperate on the same memory; if the struct contains an _Atomic

[Bug c/98965] assignment to a struct with an atomic member not atomic

2021-02-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98965 Martin Sebor changed: What|Removed |Added Keywords||diagnostic --- Comment #3 from Martin