diff options
author | Marek Polacek <polacek@redhat.com> | 2014-06-05 06:20:05 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-06-05 06:20:05 +0000 |
commit | 742938c911864563a8b04b95cbcf53d8f12a4ef9 (patch) | |
tree | 10c8e02d49aad0155082bdf3d7725c4ee7041702 /gcc/gimplify.c | |
parent | 6447c55dea95705018ff2bb3de7a81c160a71d4e (diff) | |
download | gcc-742938c911864563a8b04b95cbcf53d8f12a4ef9.zip gcc-742938c911864563a8b04b95cbcf53d8f12a4ef9.tar.gz gcc-742938c911864563a8b04b95cbcf53d8f12a4ef9.tar.bz2 |
re PR c/49706 (No warning for (!x > 1) which is always false)
PR c/49706
* doc/invoke.texi: Document -Wlogical-not-parentheses.
c-family/
* c-common.c (warn_logical_not_parentheses): New function.
* c-common.h (warn_logical_not_parentheses): Declare.
* c.opt (Wlogical-not-parentheses): New option.
c/
* c-typeck.c (parser_build_binary_op): Warn when logical not is used
on the left hand side operand of a comparison.
cp/
* parser.c (cp_parser_binary_expression): Warn when logical not is
used on the left hand side operand of a comparison.
testsuite/
* c-c++-common/pr49706.c: New test.
From-SVN: r211255
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions