builtins.c (expand_builtin_atomic_exchange): Remove error when memory model is CONSUME.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 14 Jan 2015 21:30:39 +0000 (21:30 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Wed, 14 Jan 2015 21:30:39 +0000 (21:30 +0000)
commit77df532784a1cf843a87c932b49e3062c5e84de5
tree139a6cc39626bb130c35f360a73c2e8a39d370cd
parent2ead7928a24970eb69b5c9716a46673cde2c783b
builtins.c (expand_builtin_atomic_exchange): Remove error when memory model is CONSUME.

2015-01-14  Andrew MacLeod  <amacleod@redhat.com>

* builtins.c (expand_builtin_atomic_exchange): Remove error when
memory model is CONSUME.
(expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
expand_builtin_atomic_store): Change invalid memory model errors to
warnings.
(expand_builtin_atomic_clear): Change invalid model errors to warnings
and issue warning for CONSUME.
* testsuite/gcc.dg/atomic-invalid.c: Check for invalid memory model
warnings instead of errors.

M    gcc/ChangeLog
M    gcc/builtins.c
M    gcc/testsuite/ChangeLog
M    gcc/testsuite/gcc.dg/atomic-invalid.c

From-SVN: r219615
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/atomic-invalid.c