On Sep 27 2016, Jakub Jelinek <ja...@redhat.com> wrote:

> On Tue, Sep 27, 2016 at 11:40:19AM +0200, Marek Polacek wrote:
>> GCC 4.3 stupidly errors on this with
>> error: unrecognized command line option "-Wno-implicit-fallthrough"
>> so use -Wno-error instead.
>
> I'm not sure I like this, then we'll see even during stage2/stage3 lots of
> warnings in those files and other kinds of errors will not be reported.
> And, the surrounding lines show that we already use -Wno-unused or
> -Wno-strict-aliasing on other files.
>
> My preference would be configure test for whether -Wno-implicit-fallthrough
> works, and using @W_NO_IMPLICIT_FALLTHROUGH@ in there or something similar
> (or stick that into a make variable and use $(W_NO_IMPLICIT_FALLTHROUGH)).

Perhaps some general construct that suppresses -Wno-foo in stage1 only?

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to