[Bug c++/91024] [9 Regression] -Wimplicit-fallthrough is confused by likely/unlikely attributes
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 28 22:57:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91024
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 28 22:57:16 2019
New Revision: 272804
URL: https://gcc.gnu.org/viewcvs?rev=272804&root=gcc&view=rev
Log:
Backported from mainline
2019-06-27 Jakub Jelinek <jakub@redhat.com>
PR c++/91024
* gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
statements.
* g++.dg/warn/Wimplicit-fallthrough-4.C: New test.
Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/warn/Wimplicit-fallthrough-4.C
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/gimplify.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list