re PR c/79152 (-Wimplicit-fallthrough false positive triggered by goto statements)
authorMarek Polacek <polacek@redhat.com>
Fri, 20 Jan 2017 16:28:16 +0000 (16:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 20 Jan 2017 16:28:16 +0000 (16:28 +0000)
commitd2aadab150ac5f2c7e140d5568647a0c74eb67da
tree2e7dbd0f9a2d2c81943c7cec1e7f5884b0fa0ade
parent776d540459c10c1cfe407a39f4460c9fe807712f
re PR c/79152 (-Wimplicit-fallthrough false positive triggered by goto statements)

PR c/79152
* gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
non-case labels.

* c-c++-common/Wimplicit-fallthrough-35.c: New test.

From-SVN: r244726
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wimplicit-fallthrough-35.c [new file with mode: 0644]