diff options
author | Marek Polacek <polacek@redhat.com> | 2016-01-05 20:24:02 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-01-05 20:24:02 +0000 |
commit | 8d9fdb4941deac5766d3f2b6e76557ac4d8905c5 (patch) | |
tree | b620986733c4411751b0a819e3cace757494303f /gcc/tree-ssa-pre.c | |
parent | 66f49f07d85b002777c45e8f3d1c529ecb65c1cf (diff) | |
download | gcc-8d9fdb4941deac5766d3f2b6e76557ac4d8905c5.zip gcc-8d9fdb4941deac5766d3f2b6e76557ac4d8905c5.tar.gz gcc-8d9fdb4941deac5766d3f2b6e76557ac4d8905c5.tar.bz2 |
re PR c/69104 (invalid atomic memory order not diagnosed)
PR c/69104
* builtins.c (get_memmodel): Use expansion point location rather than
the input location. Call warning_at rather than warning.
(expand_builtin_atomic_compare_exchange): Likewise.
(expand_builtin_atomic_load): Likewise.
(expand_builtin_atomic_store): Likewise.
(expand_builtin_atomic_clear): Likewise.
* gcc.dg/atomic-invalid-2.c: New.
From-SVN: r232090
Diffstat (limited to 'gcc/tree-ssa-pre.c')
0 files changed, 0 insertions, 0 deletions