gimplify.c (should_warn_for_implicit_fallthrough): Check for FALLTHROUGH_LABEL_P...
authorMarek Polacek <polacek@redhat.com>
Fri, 7 Oct 2016 12:44:54 +0000 (12:44 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 7 Oct 2016 12:44:54 +0000 (12:44 +0000)
commita9172bf307dd49fa001387f4b514ea49d38f2092
tree9a20274567104fda6593fcc35ed4b64bb5d20406
parent8a14afd0657b21e1de31fd1b2146056b09dbab5b
gimplify.c (should_warn_for_implicit_fallthrough): Check for FALLTHROUGH_LABEL_P here...

* gimplify.c (should_warn_for_implicit_fallthrough): Check for
FALLTHROUGH_LABEL_P here...
(warn_implicit_fallthrough_r): ...not here.

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

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