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 [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Jeff Garzik
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code David Relson
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C co... Raja R Harinath
- Re: Patch to remove undefined C code Richard Henderson
- Re: Patch to remove undefined C code Abramo Bagnara
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C code Helge Hafting
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C co... Horst von Brand
- Re: Patch to remove undefined C code Mark Montague
- Re: Patch to remove undefined C co... Bill Wendling
- Re: Patch to remove undefined C code Horst von Brand
- Re: Patch to remove undefined C code Bernd Schmidt