Re: Some cleanup patches for: '...lvalues is deprecated'

From: Mikael Pettersson
Date: Sat Jul 31 2004 - 03:44:52 EST


On Fri, 30 Jul 2004 11:11:32 +0200, Joel Soete wrote:
>> FYI, lvalue casts are treated as errors in gcc 3.5.
>>
>According to this kind remark, I think so that following attachement patc=
>hes
>would be interesting.

(cast-as-lvalue elimination patches omitted)

Did you know that there is a larger gcc-3.4 fixes patch:
<http://www.csd.uu.se/~mikpe/linux/patches/2.4/patch-gcc340-fixes-v4-2.4.27-rc3>
?

This patch handles all issues when using gcc-3.4 to compile
the current 2.4 kernel, of which cast-as-lvalue is just one.
The only difference, AFAIK, is that gcc-3.4 "merely" warns
about cast-as-lvalue while gcc-3.5 errors out on them.

All changes in the gcc-3.4 fixes patch are backports from
the 2.6 kernel, except in very few cases when 2.4 and 2.6
have diverged making slightly different fixes more appropriate
for 2.4.

The patch handles i386, x86-64, and ppc architecture code,
plus whatever drivers etc I've ever needed, plus drivers
etc other people have contributed or requested fixes for.
The only code I'm not considering is architecture code for
other architectures than i386/x86-64/ppc, since those are
the only ones I can compile and test.

/Mikael
-
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/