public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Daniel Walker <dwalker@mvista.com>
Cc: Jeff Garzik <jeff@garzik.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Announce: gcc bogus warning repository
Date: Sun, 1 Oct 2006 11:12:26 -0700	[thread overview]
Message-ID: <20061001111226.3e14133f.akpm@osdl.org> (raw)
In-Reply-To: <1159717214.24767.3.camel@c-67-180-230-165.hsd1.ca.comcast.net>

On Sun, 01 Oct 2006 08:40:13 -0700
Daniel Walker <dwalker@mvista.com> wrote:

> On Sun, 2006-10-01 at 09:44 -0400, Jeff Garzik wrote:
> > The level of warnings in a kernel build has lately increased to the 
> > point where it is hiding bugs and otherwise making life difficult.
> > 
> > In particular, recent gcc versions throw warnings when it thinks a 
> > variable "MAY be used uninitialized", which is not terribly helpful due 
> > to the fact that most of these warnings are bogus.
> > 
> > For those that may find this valuable, I have started a git repo that 
> > silences these bogus warnings, after careful auditing of code paths to 
> > ensure that the warning truly is bogus.
> > 
> > The results may be found in the "gccbug" branch of
> > git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git
> > 

Funny - I started doing the exact same thing here just eight hours ago. 
I'll send you anything which isn't in that git tree, thanks.

> Steven Rostedt an I worked on this problem in May. Steven came up with,
> a nice way to handle these warnings, which doesn't increase code size.
> Here's the post if your interested.
> 
> http://lkml.org/lkml/2006/5/11/50

I think we should merge that and use it.  No overhead, self-documenting,
easily greppable for.

The downsides are that it muckies up the source a little and introduces a
very small risk that real use-uninitialised bugs will be hidden.  But I
believe the benefit outweighs those disadvantages.

  reply	other threads:[~2006-10-01 18:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-01 13:44 Announce: gcc bogus warning repository Jeff Garzik
2006-10-01 13:56 ` Al Viro
2006-10-01 15:40 ` Daniel Walker
2006-10-01 18:12   ` Andrew Morton [this message]
2006-10-01 18:16     ` Jeff Garzik
2006-10-01 18:26       ` Daniel Walker
2006-10-01 18:45         ` Jeff Garzik
2006-10-01 18:58           ` Daniel Walker
2006-10-01 19:00             ` Al Viro
2006-10-01 19:03               ` Daniel Walker
2006-10-01 19:07                 ` Al Viro
2006-10-01 19:13                   ` Daniel Walker
2006-10-01 19:20                     ` Al Viro
2006-10-01 19:25                       ` Daniel Walker
2006-10-01 19:33                         ` Al Viro
2006-10-01 21:45                           ` Andrew Morton
2006-10-01 20:24     ` Roland Dreier
2006-10-02 11:39   ` linux-os (Dick Johnson)
2006-10-01 17:07 ` Randy Dunlap
2006-10-01 17:20   ` Jeff Garzik
2006-10-01 17:27     ` Alistair John Strachan
2006-10-01 17:45       ` Adrian Bunk
2006-10-01 18:16     ` Randy Dunlap
2006-10-04 16:19     ` Jörn Engel

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=20061001111226.3e14133f.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=dwalker@mvista.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.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