re PR c/68908 (inefficient code for _Atomic operations)
authorMarek Polacek <polacek@redhat.com>
Mon, 4 Jan 2016 12:27:08 +0000 (12:27 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 4 Jan 2016 12:27:08 +0000 (12:27 +0000)
commit2fe0a2080e33f946fc685c1a0518e438f642d8f9
treeafd3c3142238b8e1226bab23d98cc2a9cf3b1cd9
parent8db883aa82562867eba7e8a82b34ed70204bad6b
re PR c/68908 (inefficient code for _Atomic operations)

PR c/68908
* c-typeck.c (build_atomic_assign): Improve commentary.  Add
optimization to use __atomic_fetch_* built-in if possible.

* gcc.dg/atomic/c11-atomic-exec-6.c: New test.
* gcc.dg/atomic/c11-atomic-exec-7.c: New test.
* gcc.dg/atomic/stdatomic-op-5.c: New test.

From-SVN: r232052
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/atomic/stdatomic-op-5.c [new file with mode: 0644]