r239988 - in /trunk/gcc: ChangeLog c-family/Cha...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Mon Sep 5 12:17:00 GMT 2016


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



More information about the Gcc-cvs mailing list