Re: [PATCH 02/13] hrtimer: remove useless const

From: Thomas Gleixner
Date: Mon Feb 13 2006 - 06:27:39 EST


On Mon, 2006-02-13 at 02:09 +0100, Roman Zippel wrote:
> A const for arguments which are passed by value is completely ignored by
> gcc. It has only an effect on local variables and even here gcc doesn't
> need it either to produce better code.
>
> Signed-off-by: Roman Zippel <zippel@xxxxxxxxxxxxxx>

NACK - gcc3 produces smaller code with the const - only gcc4 fixed that,
so we want to keep these consts until gcc4 is the only compiler
supported.

Also this is neither a regression nor a bug and therefor not required
for 2.6.16.

tglx


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