This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r231902 - in /trunk/gcc: c/ChangeLog c/c-typeck...
- From: mpolacek at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 22 Dec 2015 15:23:21 -0000
- Subject: r231902 - in /trunk/gcc: c/ChangeLog c/c-typeck...
Author: mpolacek
Date: Tue Dec 22 15:23:21 2015
New Revision: 231902
URL: https://gcc.gnu.org/viewcvs?rev=231902&root=gcc&view=rev
Log:
PR c/69002
* c-typeck.c (build_component_ref): Warn when acessing elements of
atomic structures or unions.
* gcc.dg/c11-atomic-1.c: Add dg-warnings.
* gcc.dg/c11-atomic-4.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/c11-atomic-4.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/c11-atomic-1.c