Re: [PATCH] Fix bogus warning with -Wimplicit-fallthrough (PR c/79152)

2017-01-20 Thread Jakub Jelinek
On Fri, Jan 20, 2017 at 05:14:34PM +0100, Marek Polacek wrote: > We already have code to handle > > case 0: > foo (); > label: > bar (); > > where we don't want to warn, but the code didn't handle consecutive non-case > labels. Thus fixed. > > Bootstrapped/regtested on x86_64-linux,

[PATCH] Fix bogus warning with -Wimplicit-fallthrough (PR c/79152)

2017-01-20 Thread Marek Polacek
We already have code to handle case 0: foo (); label: bar (); where we don't want to warn, but the code didn't handle consecutive non-case labels. Thus fixed. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2017-01-20 Marek Polacek PR c/79152 * gimplify.c