Jonathan George <[EMAIL PROTECTED]> writes:
> This patch has many bogus corrections where new variables were created, but
> the order of evaluation is already unambiguous.
>
> For example each comma separated clause in an expression is guaranteed to be
> completely evaluated before the next comma separated clause Including
> Assignments.
No, that is not true in general. When the comma in question is
the comma operator, it is true. But when the comma separates
arguments to a function, it is not: the order of evaluation of
function arguments is implementation dependent. See C89 section
6.3.2.2 "Function calls":
$ The order of evaluation of the function designator, the
$ arguments, and subexpressions within the arguments is
$ unspecified, ...
--
"Premature optimization is the root of all evil."
--D. E. Knuth, "Structured Programming with go to Statements"
-
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/
- 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 code Horst von Brand
- Re: Patch to remove undefined C code Mark Montague
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C code Horst von Brand
- Re: Patch to remove undefined C code Bernd Schmidt
- Patch to remove undefined C code Jonathan George
- Re: Patch to remove undefined C code Ben Pfaff
- Re: Patch to remove undefined C code Alexander Viro
- Re: Patch to remove undefined C code Mike Castle
- Re: Patch to remove undefined C code Alexander Viro
- RE: Patch to remove undefined C code Jonathan George
- Re: Patch to remove undefined C code Ben Pfaff
- Re: Patch to remove undefined C code Matti Aarnio
- Re: Patch to remove undefined C code Ben Pfaff
- Re: Patch to remove undefined C code Peter Samuelson
- Re: Patch to remove undefined C cod... Tom Leete
- Re: Patch to remove undefined C... Bill Wendling

