Re: Form k = i + j and test for overflow.



Brooks Moses <bmoses-nospam@xxxxxxxxxxxxxxxxxx> wrote:

I don't see how that follows, unless you require the optimized code to
produce the same result as the unoptimized code even when the program
being compiled is illegal. I don't think that's a reasonable thing to
expect a compiler to conform to.

And very often compilers don't. Illegal argument aliasing is a classic
case.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.