Greg Stark <[email protected]> writes: > He's changing things to do > if (INT_MAX - a > b) > PG_THROW ("a+b would overflow") > else > x=a+b;
> Why would a smarter compiler be licensed to conclude that it can
> optimize away anything? "INT_MAX-a > b" is always well defined.
Really? Can't "INT_MAX - a" overflow?
regards, tom lane
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
