lkml.org 
[lkml]   [2006]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] silence gcc warning about possibly uninitialized use of variable in scsi_scan
On 2/26/06, James Bottomley <James.Bottomley@steeleye.com> wrote:
> On Sun, 2006-02-26 at 19:23 +0100, Jesper Juhl wrote:
> > > gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
> > >
> > > Doesn't give this warning. And, since the loop has fixed parameters,
> > > gcc should see not only that it's always executed, but that it could be
> > > unrolled.
> > >
> > > Which version is causing the problem?
> > >
> > 2.6.16-rc4-mm2 build with gcc 3.4.5
>
> I also tried with
>
> gcc version 3.3.5 (Debian 1:3.3.5-13)
>
> which likewise fails to give this warning, so I really think this is a
> bug in your particular version of gcc.
>

Hmm, it's quite reproducible and the gcc 3.4.5 I have here is not
patched by the distribution (Slackware). If you want I can send you
the .config that results in the warning..

--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
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/

\
 
 \ /
  Last update: 2006-02-26 20:03    [W:0.061 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site