aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-09-05 12:17:09 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-09-05 12:17:09 +0000
commit25ff5dd35471b2b20f2b2681c8ff24c0d086ec00 (patch)
treecbe9638e9cb6159d1a15ccd556a01d2ef8a445c8 /gcc/doc
parentc5cb79681df13acc02894b4df8314c797895e2bb (diff)
downloadgcc-25ff5dd35471b2b20f2b2681c8ff24c0d086ec00.zip
gcc-25ff5dd35471b2b20f2b2681c8ff24c0d086ec00.tar.gz
gcc-25ff5dd35471b2b20f2b2681c8ff24c0d086ec00.tar.bz2
re PR c/77423 (-Wlogical-not-parentheses false positive for bitwise expression with _Bool operands)
PR c/77423 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation. * c-common.c (bool_promoted_to_int_p): New function. (expr_has_boolean_operands_p): New function. (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. (maybe_warn_bool_compare): Use bool_promoted_to_int_p. * c-c++-common/Wlogical-not-parentheses-3.c: New test. From-SVN: r239988
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 73aab7c..9ab031e 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -5476,8 +5476,8 @@ if (a < 0 && a < 0) @{ @dots{} @}
@opindex Wlogical-not-parentheses
@opindex Wno-logical-not-parentheses
Warn about logical not used on the left hand side operand of a comparison.
-This option does not warn if the RHS operand is of a boolean type. Its
-purpose is to detect suspicious code like the following:
+This option does not warn if the right operand is considered to be a Boolean
+expression. Its purpose is to detect suspicious code like the following:
@smallexample
int a;
@dots{}