[lkml]   [2000]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Patch to remove undefined C code
    Bernd Schmidt wrote:
    > I've been playing with some gcc patches to detect code with undefined
    > behaviour of the i = i++ variety. The patch below fixes all places in
    > the kernel that I could find. Note that in some cases, it wasn't
    > entirely clear what the code intended, so I had to guess.

    Please don't guess. Look at the generated assembly, then make the
    unambigous code do whatever the old code did. Chances are high it
    worked ok by luck, as misbehaving code tend to get noticed as
    it fails.

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

     \ /
      Last update: 2005-03-22 12:41    [W:0.021 / U:9.228 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site