Re: Add configure check for -Wimplicit-fallthrough

2016-09-27 Thread Marek Polacek
On Tue, Sep 27, 2016 at 03:23:52PM +0200, Richard Biener wrote: > On Tue, Sep 27, 2016 at 3:13 PM, Jakub Jelinek wrote: > > On Tue, Sep 27, 2016 at 03:09:36PM +0200, Richard Biener wrote: > >> On Tue, Sep 27, 2016 at 3:05 PM, Marek Polacek wrote: > >> > Using -Wno-error where only -Wno-implicit-f

Re: Add configure check for -Wimplicit-fallthrough

2016-09-27 Thread Richard Biener
On Tue, Sep 27, 2016 at 3:13 PM, Jakub Jelinek wrote: > On Tue, Sep 27, 2016 at 03:09:36PM +0200, Richard Biener wrote: >> On Tue, Sep 27, 2016 at 3:05 PM, Marek Polacek wrote: >> > Using -Wno-error where only -Wno-implicit-fallthrough was meant was deemed >> > to coarse, so this patch attempts t

Re: Add configure check for -Wimplicit-fallthrough

2016-09-27 Thread Jakub Jelinek
On Tue, Sep 27, 2016 at 03:09:36PM +0200, Richard Biener wrote: > On Tue, Sep 27, 2016 at 3:05 PM, Marek Polacek wrote: > > Using -Wno-error where only -Wno-implicit-fallthrough was meant was deemed > > to coarse, so this patch attempts to add a configure check for this warnign > > and only use -W

Re: Add configure check for -Wimplicit-fallthrough

2016-09-27 Thread Jakub Jelinek
On Tue, Sep 27, 2016 at 03:05:24PM +0200, Marek Polacek wrote: > Using -Wno-error where only -Wno-implicit-fallthrough was meant was deemed > to coarse, so this patch attempts to add a configure check for this warnign > and only use -Wno-implicit-fallthrough when appropriate. > > Bootstrapped on x

Re: Add configure check for -Wimplicit-fallthrough

2016-09-27 Thread Richard Biener
On Tue, Sep 27, 2016 at 3:05 PM, Marek Polacek wrote: > Using -Wno-error where only -Wno-implicit-fallthrough was meant was deemed > to coarse, so this patch attempts to add a configure check for this warnign > and only use -Wno-implicit-fallthrough when appropriate. > > Bootstrapped on x86_64-lin

Add configure check for -Wimplicit-fallthrough

2016-09-27 Thread Marek Polacek
Using -Wno-error where only -Wno-implicit-fallthrough was meant was deemed to coarse, so this patch attempts to add a configure check for this warnign and only use -Wno-implicit-fallthrough when appropriate. Bootstrapped on x86_64-linux and ppc64-linux, ok for trunk? 2016-09-27 Marek Polacek