aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-04-13 16:00:52 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-04-13 16:00:52 +0000
commit99cd9857c01234bb5b6cbff54e1bd2a400c04179 (patch)
tree7962ab3337ef28f108f4429418332c990368a28b /gcc/cfgexpand.c
parent5267cfcc82d1ea904335486e476c4945ad4da6e7 (diff)
downloadgcc-99cd9857c01234bb5b6cbff54e1bd2a400c04179.zip
gcc-99cd9857c01234bb5b6cbff54e1bd2a400c04179.tar.gz
gcc-99cd9857c01234bb5b6cbff54e1bd2a400c04179.tar.bz2
re PR c/70436 (-Wparentheses missing ambiguous else warning)
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. From-SVN: r234949
Diffstat (limited to 'gcc/cfgexpand.c')
0 files changed, 0 insertions, 0 deletions