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

Arjan van de Ven
2002-10-07T10:58:32Z

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

On Mon, 2002-10-07 at 12:56, Andi Kleen wrote:
> 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.

I'm still in favor of doing it, even if it's just to break the
chick-and-egg deadlock that such issues can have.

Greetings,
Arjan van de Ven

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]