Re: [PATCH] Use __attribute__((malloc)) for gcc 3.2

From: Andi Kleen (ak@muc.de)
Date: Mon Oct 07 2002 - 05:56:22 EST


On Mon, Oct 07, 2002 at 12:29:00PM +0200, David S. Miller wrote:
> From: Richard Henderson <rth@twiddle.net>
> Date: Mon, 7 Oct 2002 03:05:41 -0700
>
> On Sun, Sep 29, 2002 at 04:01:13PM -0400, Jakub Jelinek wrote:
> > Does this matter when the kernel is compiled with -fno-strict-aliasing?
>
> Yes. The malloc attribute uses REG_NOALIAS, not alias sets.
>
> Great, I'm all for Andi's patch in that case.

I retested it on gcc 3.2 and it unfortunately doesn't make any difference
(resulting kernel is byte-for-byte identical). So it looks like with
current gcc it isn't worth the effort.

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



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:57 EST