re PR c/81448 (False positive -Werror=multistatement-macros in openssl)
authorMarek Polacek <polacek@redhat.com>
Wed, 2 Aug 2017 11:56:54 +0000 (11:56 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 2 Aug 2017 11:56:54 +0000 (11:56 +0000)
commit8a6eab343adef92f8d20a4a59bafdfa8e0b67e55
treecfafb2d10eb8c86e97e52f603c8e27ed8f95ee15
parentf7b6353a7ff5edd28bda30480e304bc02cc05432
re PR c/81448 (False positive -Werror=multistatement-macros in openssl)

PR c/81448
PR c/81306
* c-warn.c (warn_for_multistatement_macros): Prevent bogus
warnings.  Avoid walking MACRO_MAP_LOCATIONS.

* c-c++-common/Wmultistatement-macros-13.c: New test.

From-SVN: r250822
gcc/c-family/c-warn.c
gcc/c/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wmultistatement-macros-13.c [new file with mode: 0644]