This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimisation question


Dave Korn wrote:

  I think Andreas' point there is just that, if one accepts that comma and
semicolon are equivalent in this case, then one must also accept that the two
original examples

a = b, c = d, e = f;

and
    a = b; c = d; e = f;

become formally identical, thereby showing that it's meaningless to suggest one
may be more optimal than the other.

Well being formally identical does not guarantee identical code. Presumably this peculiar advice came from a compiler where they were treated in identical manner. Nothing in the standard requires identical code in these two cases.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]