Re: C PATCH to warn when accessing members of atomic structures (PR c/69002)

2015-12-22 Thread Joseph Myers
On Tue, 22 Dec 2015, Marek Polacek wrote: > This patch adds a warning (enabled by default) to warn about accessing > elements > of atomic structures or unions, which is undefined behavior according to the C > standard. I didn't make this a translation-time error because it's unclear if > it shou

C PATCH to warn when accessing members of atomic structures (PR c/69002)

2015-12-22 Thread Marek Polacek
This patch adds a warning (enabled by default) to warn about accessing elements of atomic structures or unions, which is undefined behavior according to the C standard. I didn't make this a translation-time error because it's unclear if it should be so. Bootstrapped/regtested on x86_64-linux and