Messages in this thread | | | Date | Mon, 23 Oct 2000 20:15:40 -0400 | From | Michael Meissner <> | Subject | Re: Kernel 2.2.17 with RedHat 7 Problem ! |
| |
On Mon, Oct 23, 2000 at 07:48:08PM -0400, David Relson wrote: > Horst, > > What you say is correct. Early comments on gcc-2.96 reflected preprocessor > changes which made it impossible to compile a kernel. Later comments, > particularly David Wragg's "struct itimerval" example, show that compiler > optimizations is broken. > > My recollection is that the behavior of "a[i] = b[i++]" is well defined, > i.e. in the standard. However it's been years since I paid attention to > those details, so I may be wrong.
Umm, no, since
a[i] = b[i++]
does not have a sequence, it is explicitly undefined behavior in the standard. As I recall Bernd Schmidt recently found a number of places where the above construct is used in the Linux kernel.
-- Michael Meissner, Red Hat, Inc. PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA Work: meissner@redhat.com phone: +1 978-486-9304 Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |