Re: [patch] Fix inconsistency in invert_tree_comparison

2011-10-23 Thread Eric Botcazou
> Do you have an idea why we test flag_trapping_math here? Not really, the test was added with the contradictory comment: http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01674.html -- Eric Botcazou

Re: [patch] Fix inconsistency in invert_tree_comparison

2011-10-23 Thread Richard Guenther
On Sun, Oct 23, 2011 at 10:56 AM, Eric Botcazou wrote: > Hi, > > the comment of the function reads: > > /* Given a tree comparison code, return the code that is the logical inverse >   of the given code.  It is not safe to do this for floating-point >   comparisons, except for NE_EXPR and EQ_EXPR,