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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Aug 22 19:44:27 2014
New Revision: 214360

URL: https://gcc.gnu.org/viewcvs?rev=214360&root=gcc&view=rev
Log:
    PR c++/62199
    * doc/invoke.texi: Update -Wlogical-not-parentheses description.
c-family/
    * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
    check for vector types.  Drop LHS argument.
    * c-common.h (warn_logical_not_parentheses): Adjust.
c/
    * c-typeck.c (parser_build_binary_op): Adjust call to
    warn_logical_not_parentheses.
cp/
    * parser.c (cp_parser_binary_expression): Check each LHS if it's
    preceded with logical not.  Adjust call to
    warn_logical_not_parentheses.
testsuite/
    * c-c++-common/pr62199.c: New test.
    * c-c++-common/pr62199-2.c: New test.
    * g++.dg/warn/Wparentheses-25.C: Drop XFAILs.

Added:
    trunk/gcc/testsuite/c-c++-common/pr62199-2.c
    trunk/gcc/testsuite/c-c++-common/pr62199.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/warn/Wparentheses-25.C

Reply via email to