re PR c++/91024 (-Wimplicit-fallthrough is confused by likely/unlikely attributes)
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Jun 2019 21:25:56 +0000 (23:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 27 Jun 2019 21:25:56 +0000 (23:25 +0200)
commit95bb6e7a56d17f5f8886815f85dff71d12964245
tree6bc36b124ce78d0016041c9e38921154d9a85f2f
parent12213acba9cff14bb8e37bbafd5918ba3265f829
re PR c++/91024 (-Wimplicit-fallthrough is confused by likely/unlikely attributes)

PR c++/91024
* gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
statements.

* g++.dg/warn/Wimplicit-fallthrough-4.C: New test.

From-SVN: r272764
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wimplicit-fallthrough-4.C [new file with mode: 0644]