lkml.org 
[lkml]   [2002]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] Use __attribute__((malloc)) for gcc 3.2
    From
    Date
    Jakub Jelinek <jakub@redhat.com> writes:

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

    I don't know. But it's certainly worth trying, isn't it ? Giving the
    compiler more information can't be a bad thing.

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

    \
     
     \ /
      Last update: 2005-03-22 13:29    [W:0.021 / U:60.560 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site