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

Andi Kleen
2002-10-07T10:51:14Z

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