From: Ingo Molnar <mingo@kernel.org>
To: Valdis.Kletnieks@vt.edu
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Peter Anvin <hpa@zytor.com>, Brian Gerst <brgerst@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
Borislav Petkov <bp@alien8.de>,
Peter Zijlstra <peterz@infradead.org>,
Andy Lutomirski <luto@amacapital.net>,
Louis Langholtz <lou_langholtz@me.com>,
Denys Vlasenko <dvlasenk@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [tip:x86/build] x86/build: Remove -Wno-sign-compare
Date: Wed, 13 May 2015 12:22:57 +0200 [thread overview]
Message-ID: <20150513102257.GB4318@gmail.com> (raw)
In-Reply-To: <156879.1431503013@turing-police.cc.vt.edu>
* Valdis.Kletnieks@vt.edu <Valdis.Kletnieks@vt.edu> wrote:
> On Tue, 12 May 2015 10:44:15 +0200, Ingo Molnar said:
>
> > Btw., just some feedback, 'random' kernel configs still generate a ton
> > of warnings:
> >
> > randconf: # 9, ed602bbb, Tue_May_12_09_07_25_CEST_2015: 39 kernels/hour,
> [ bzImage... 81 secs, modules... 21 secs, done ] (warns: 6)
> > randconf: # 10, ed602bbb, Tue_May_12_09_10_10_CEST_2015: 36 kernels/hour,
> [ bzImage... 43 secs, modules... 20 secs, done ] (warns: 12)
> > randconf: # 11, ed602bbb, Tue_May_12_09_11_52_CEST_2015: 36 kernels/hour,
> [ bzImage... 71 secs, modules... 0 secs, done ] (warns: 5)
> > randconf: # 12, ed602bbb, Tue_May_12_09_12_56_CEST_2015: 37 kernels/hour,
> [ bzImage... 64 secs, modules... 28 secs, done ] (warns: 16)
> > randconf: # 13, ed602bbb, Tue_May_12_09_14_07_CEST_2015: 38 kernels/hour,
> [ bzImage... 106 secs, modules... 0 secs, done ] (warns: 157)
> > randconf: # 14, ed602bbb, Tue_May_12_09_15_40_CEST_2015: 38 kernels/hour,
> [ bzImage... 100 secs, modules... 0 secs, done ] (warns: 11)
> > randconf: # 15, ed602bbb, Tue_May_12_09_17_27_CEST_2015: 37 kernels/hour,
> [ bzImage... 65 secs, modules... 28 secs, done ] (warns: 26)
> > randconf: # 16, ed602bbb, Tue_May_12_09_19_08_CEST_2015: 37 kernels/hour,
> [ bzImage... 70 secs, modules... 0 secs, done ] (warns: 228)
>
> > Before I pushed out this -Wno-sign-compare change I made sure there
> > are no extra warnings generated on the 8 key configs I monitor
> > explicitly: [def|allno|allyes|allmod]config[64|32].
>
> It makes my config totally explode on next-20150512
>
> % gcc --version
> gcc (GCC) 5.1.1 20150422 (Red Hat 5.1.1-1)
>
> % grep "warning: comparison between signed and unsigned integer expressions" build.default | wc -l
> 64148
>
> A *lot*of them appear to be exploding inside likely(). Here's all the
> exploding for *one file*...
That's a prerelease of GCC, right? So I think GCC gets constant
propagation from various builtins wrong or so.
But ... the output looks horrible, and for years we didn't have the
warnings, still after reintroducing it we didn't get any new warnings
about truly bogus code.
So it does not seem to have much utility, and seems to be horribly
broken on fresh GCC.
I'll remove the commit.
Thanks,
Ingo
next prev parent reply other threads:[~2015-05-13 10:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tip-fd096a3bcd9718d979a7dd6253cd5b46fff66593@git.kernel.org>
[not found] ` <CA+55aFxa5HHKJNdZrSg2XNY-im1-WyG=uLveqmZKYo_Zd=kosA@mail.gmail.com>
2015-05-12 8:44 ` [tip:x86/build] x86/build: Remove -Wno-sign-compare Ingo Molnar
2015-05-12 8:53 ` Ingo Molnar
2015-05-12 17:51 ` Waiman Long
2015-05-13 7:43 ` Valdis.Kletnieks
2015-05-13 10:22 ` Ingo Molnar [this message]
2015-05-13 17:33 ` Louis Langholtz
2015-05-13 17:50 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150513102257.GB4318@gmail.com \
--to=mingo@kernel.org \
--cc=Valdis.Kletnieks@vt.edu \
--cc=bp@alien8.de \
--cc=brgerst@gmail.com \
--cc=dvlasenk@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lou_langholtz@me.com \
--cc=luto@amacapital.net \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox