This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r211255 - in /trunk/gcc: ChangeLog c-family/Cha...
- From: mpolacek at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 05 Jun 2014 06:20:05 -0000
- Subject: r211255 - in /trunk/gcc: ChangeLog c-family/Cha...
Author: mpolacek
Date: Thu Jun 5 06:20:05 2014
New Revision: 211255
URL: http://gcc.gnu.org/viewcvs?rev=211255&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/pr49706.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-family/c.opt
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