This is the mail archive of the
mailing list for the GCC project.
Re: Patch gcc-4.0 should not apply mathematical associative rules for addition or multiplication
On 05/10/2004, at 1:12 PM, Gabriel Dos Reis wrote:
Geoffrey Keating <firstname.lastname@example.org> writes:
That flag is clearly the right flag to pick. See the explanation he
It contains an example that illustrates the problem too.
For different values of "x" this leads to undeserved or absent
floating point exceptions
So, why not flag_trapping_math? The case involves an infinity, what
It is not just exceptions. It is possible that X* (C*C) would
overflow, or lose some low-order bits,
where (X*C)*C would not, for large C and small X.