r234949 - in /trunk/gcc: c/ChangeLog c/c-parser...
mpolacek@gcc.gnu.org
mpolacek@gcc.gnu.org
Wed Apr 13 16:00:00 GMT 2016
Author: mpolacek
Date: Wed Apr 13 16:00:52 2016
New Revision: 234949
URL: https://gcc.gnu.org/viewcvs?rev=234949&root=gcc&view=rev
Log:
PR c/70436
* c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
adjust callers.
(c_parser_statement): Likewise.
(c_parser_c99_block_statement): Likewise.
(c_parser_while_statement): Likewise.
(c_parser_for_statement): Likewise.
(c_parser_if_body): Don't set IF_P here.
(c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn
about dangling else here.
* c-tree.h (c_finish_if_stmt): Adjust declaration.
* c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't
warn about dangling else here.
* testsuite/gcc.dg/Wparentheses-12.c: New test.
* testsuite/gcc.dg/Wparentheses-13.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/Wparentheses-12.c
trunk/gcc/testsuite/gcc.dg/Wparentheses-13.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/c/c-tree.h
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list