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

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Wed May 4 16:00:00 GMT 2016


Author: mpolacek
Date: Wed May  4 16:00:33 2016
New Revision: 235885

URL: https://gcc.gnu.org/viewcvs?rev=235885&root=gcc&view=rev
Log:
	* c.opt (Wdangling-else): New option.

	* c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
	OPT_Wdangling_else.

	* parser.c (cp_parser_selection_statement): Replace OPT_Wparentheses
	with OPT_Wdangling_else.

	* doc/invoke.texi: Document -Wdangling-else.

	* c-c++-common/Wdangling-else-1.c: New test.
	* c-c++-common/Wdangling-else-2.c: New test.
	* c-c++-common/Wdangling-else-3.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/Wdangling-else-1.c
    trunk/gcc/testsuite/c-c++-common/Wdangling-else-2.c
    trunk/gcc/testsuite/c-c++-common/Wdangling-else-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c.opt
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list