https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77423

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Sep  5 12:17:09 2016
New Revision: 239988

URL: https://gcc.gnu.org/viewcvs?rev=239988&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/c-c++-common/Wlogical-not-parentheses-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog

Reply via email to