Commit Message

Hello,
the simple patch below passes the testsuite after a c,c++ bootstrap
without new regressions. Note however that
#include <math.h>
int f(double a, double b){
return (!isunordered(a,b))&&(a<b);
}
is then optimized by ifcombine to "return (a<b);", which seems wrong in
the absence of -fno-trapping-math. I don't know if there are ways to
trigger this latent bug without the patch.
2012-06-15 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/53805
* fold-const.c (invert_tree_comparison): Do invert ORDERED_EXPR and
UNORDERED_EXPR for floating point.