https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128748

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=120280

--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Zhiyang Chen from comment #3)
> (In reply to Richard Biener from comment #1)
> > Confirmed.  I'd suggest to simply remove the folding(s) instead.
> 
> Thanks, agreed. Only the ABS (X) <= C fold in fold_binary_loc is wrong. The
> two folds after it (ABS_EXPR <x> >= 0 -> true, ABS_EXPR <x> < 0 -> false)
> go through tree_expr_nonnegative_p and give the right result with -fwrapv
> for x = INT_MIN (checked).

There is also some missing PR 120280.

Reply via email to