[lkml]   [2007]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily
    On Mon, 2007-07-23 at 10:55 -0700, Linus Torvalds wrote:
    > > The goal is to let gcc generate good, beautiful, optimized code.
    > No. The point is to let gcc generate *correct* code.
    > It's either "=m" together with "memory", or it's "+m".

    In fact, it's more than that... the bitops that return a value are often
    used to have hand-made spinlock semantics. I'm sure we would get funky
    bugs if loads or stores leaked out of the locked region. I think a full
    "memory" clobber should be kept around for those cases.

    (That's also why on ppc, we give them a few more barriers)


    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: 2007-07-24 11:55    [W:0.019 / U:3.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site