re PR c/68907 (bogus warning: right-hand operand of comma expression has no effect...
authorMarek Polacek <polacek@redhat.com>
Tue, 15 Dec 2015 15:13:49 +0000 (15:13 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 15 Dec 2015 15:13:49 +0000 (15:13 +0000)
commit2994fb91b7df8f8a0c0f83024c240f25f78f25a0
tree4754cc1722a0b8dfa443bdb17e5fb5e5f5efc61d
parent4a38b02b4ed0b6d58e1773072daff795eb244829
re PR c/68907 (bogus warning: right-hand operand of comma expression has no effect on an atomic_int preincrement)

PR c/68907
* c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
artificial decl.

* gcc.dg/pr68907.c: New test.

From-SVN: r231656
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68907.c [new file with mode: 0644]