[lkml]   [2003]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Fix do_div() for all architectures
    On Thursday, July 10, 2003, at 12:31  PM, Bernardo Innocenti wrote:
    > The compiler could easily tell what memory can be clobbered by a
    > pointer
    > by applying type-based aliasing rules. For example, a function taking a
    > "char *" can't clobber memory objects declared as "long bar" or
    > "struct foo".

    No, for two reasons. First, anything can be aliased by a char. Second,
    the restriction is on the type of the eventual memory reference,
    not on the type of the pointer. Assuming an int* p, you can still do
    *((char*)p) and
    that may alias anything. So you must check each dereference; this
    can't be
    done easily at function entry.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:46    [W:0.023 / U:17.332 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site