re PR c/81364 (Bogus -Wmultistatement-macros warning)
authorMarek Polacek <polacek@redhat.com>
Tue, 25 Jul 2017 09:49:08 +0000 (09:49 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 25 Jul 2017 09:49:08 +0000 (09:49 +0000)
commitd49718d6ff41cdf8ed6b013b9e099f7ec3541053
tree1cb6cf103468770b4f76a042134eac5a3ae9a58b
parent0e82a9b9422447fe9730831a5072655e0f5780f7
re PR c/81364 (Bogus -Wmultistatement-macros warning)

PR c/81364
* c-parser.c (c_parser_else_body): Don't warn about multistatement
macro expansion if the body is in { }.
(c_parser_while_statement): Likewise.
(c_parser_for_statement): Likewise.

* Wmultistatement-macros-12.c: New test.

From-SVN: r250498
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wmultistatement-macros-12.c [new file with mode: 0644]