Re: [PATCH -mm 1/2] 3c59x: Fix uninitialized variable bug

From: Mark Hindley
Date: Thu Sep 06 2007 - 17:40:52 EST


On Thu, Sep 06, 2007 at 03:25:55PM +0530, Satyam Sharma wrote:

> This is a GCC bug (regression, actually, as you've found out) -- no two
> ways about it. Although different from the kind Jeff mentioned couple days
> back -- that was about wising GCC up to false positives and /not/ emitting
> warnings. But here a genuine problem was not complained about, so this is
> more serious. Do you plan to open up a bug at gcc.gnu.org/bugzilla/ ?
>

Yes, I have just narrowed down a test case, which is remarkably simple!

int
main(int i)
{
int err;

if (i) {
err = 1;
}
return err;
}

Mark
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/