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/
This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:22 EST