Patch gcc-4.0 should not apply mathematical associative rules for addition or multiplication
Gabriel Dos Reis
gdr@cs.tamu.edu
Tue Oct 5 20:14:00 GMT 2004
Geoffrey Keating <geoffk@geoffk.org> writes:
[...]
| > + static inline bool
| > + associative_fp_binop (tree exp)
| > + {
| > + enum tree_code code = TREE_CODE (exp);
| > + return !(!flag_unsafe_math_optimizations
|
| This flag is not clearly the right one. Why did you pick it from the
| alternatives?
That flag is clearly the right flag to pick. See the explanation he gave.
It contains an example that illustrates the problem too.
-- Gaby
More information about the Gcc-patches
mailing list