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

Jakub Jelinek
2002-09-29T19:56:55Z

On Sun, Sep 29, 2002 at 05:27:31PM +0200, Andi Kleen wrote:
>
> gcc 3.2 has an __attribute__((malloc)) function attribute. It tells gcc
> that a function returns newly allocated memory and that the return pointer
> cannot alias with any other pointer in the parent function. This often
> allows gcc to generate better code because the optimizer doesn't need take
> pointer aliasing in account.

Does this matter when the kernel is compiled with -fno-strict-aliasing?

Jakub