lkml.org 
[lkml]   [2003]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] revert to static = {0}
    William Lee Irwin III wrote:
    > On Tue, 5 Aug 2003, Jeff Garzik wrote:
    >
    >>>If it's const, it shouldn't be linked into anything at all... right?
    >
    >
    > On Tue, Aug 05, 2003 at 07:51:41PM +0100, Hugh Dickins wrote:
    >
    >>Sorry, Jeff, I don't get your point.
    >
    >
    > I suspect this assumes const values will get constant folded, which I'm
    > not sure is the case, though it certainly sounds legal and worthwhile
    > for a compiler to do when reasonable (i.e. for small structures and/or
    > extractions of small fields of const structures).


    Correct. In fact, some Linux kernel code _assumes_ the compiler will
    fold constants...

    Jeff



    -
    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:47    [W:0.020 / U:30.468 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site