https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101254
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- INT_MAX - INT_MIN with -fwrapv is -1, indeed, and generally if x > y then x - y < 0 iff x > y + INT_MAX. Say x = 1073741839 y = -1073741887 x > y && x - y (== -2147483570) < 0