Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932154AbWJASPY (ORCPT ); Sun, 1 Oct 2006 14:15:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932161AbWJASPY (ORCPT ); Sun, 1 Oct 2006 14:15:24 -0400 Received: from xenotime.net ([66.160.160.81]:14009 "HELO xenotime.net") by vger.kernel.org with SMTP id S932154AbWJASPX (ORCPT ); Sun, 1 Oct 2006 14:15:23 -0400 Date: Sun, 1 Oct 2006 11:16:48 -0700 From: Randy Dunlap To: Jeff Garzik Cc: Linux Kernel , Andrew Morton Subject: Re: Announce: gcc bogus warning repository Message-Id: <20061001111648.226596a8.rdunlap@xenotime.net> In-Reply-To: <451FF8ED.9080507@garzik.org> References: <451FC657.6090603@garzik.org> <20061001100747.d1842273.rdunlap@xenotime.net> <451FF8ED.9080507@garzik.org> Organization: YPO4 X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2064 Lines: 48 On Sun, 01 Oct 2006 13:20:45 -0400 Jeff Garzik wrote: > Randy Dunlap wrote: > > On Sun, 01 Oct 2006 09:44:55 -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 > >> > >> This repository will NEVER EVER be pushed upstream. It exists solely > >> for those who want to decrease their build noise, thereby exposing true > >> bugs. > >> > >> The audit has already uncovered several minor bugs, lending credence to > >> my theory that too many warnings hides bugs. > > > > I usually build with must_check etc. enabled then grep them > > away if I want to look for other messages. I think that the situation > > is not so disastrous. > > I think it's both sad, and telling, that the high level of build noise > has trained kernel hackers to tune out warnings, and/or build tools of > ever-increasing sophistication just to pick out the useful messages from > all the noise. > > If you have to grep useful stuff out of the noise, you've already lost. I often build with C=1 (sparse checking), so the amount of output has to be grepped IMO. It's certainly too much to read otherwise. We just have different perspectives, I guess. --- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/