diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-03-10 07:38:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-03-10 07:38:57 +0100 |
commit | 7ccb1a11e5a8debe5689d6d149a94175c7fe9ae2 (patch) | |
tree | af3e28b78c0d8a3c890506ce8948602e57219233 /gcc/cgraph.c | |
parent | 26d83bccd1ed42a08b5940ba73742537b81efa2b (diff) | |
download | gcc-7ccb1a11e5a8debe5689d6d149a94175c7fe9ae2.zip gcc-7ccb1a11e5a8debe5689d6d149a94175c7fe9ae2.tar.gz gcc-7ccb1a11e5a8debe5689d6d149a94175c7fe9ae2.tar.bz2 |
re PR c/65120 (Wlogical-not-parentheses should not warn about double exclamation !!)
PR c/65120
* c-common.c (warn_logical_not_parentheses): Don't warn for
!x == 0 or !x != 0.
* c-typeck.c (parser_build_binary_op): Check for tcc_comparison
before preparing arguments to warn_logical_not_parentheses.
* parser.c (cp_parser_binary_expression): Check for tcc_comparison
before preparing arguments to warn_logical_not_parentheses.
Use maybe_constant_value on rhs.
* c-c++-common/pr49706.c (fn2): Don't expect warning if enumerator
on rhs is 0.
(fn4): New test.
* c-c++-common/pr65120.c: New test.
From-SVN: r221299
Diffstat (limited to 'gcc/cgraph.c')
0 files changed, 0 insertions, 0 deletions