re PR middle-end/22429 (-1073741824 <= n && n <= 1073741823 is true where n is 107374...
commitb426200a44956b057905abb52df07e763e7e2185
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 2 Nov 2005 21:44:17 +0000 (2 21:44 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 2 Nov 2005 21:44:17 +0000 (2 13:44 -0800)
treea8a257208152510defaa462a00320fab1c588c5b
parent88a33c3406ca21d94db7ca092f3f65c898e23fda
re PR middle-end/22429 (-1073741824 <= n && n <= 1073741823 is true where n is 1073741824)

        PR 22429
        * fold-const.c (build_range_check): Use unsigned when signed
        overflow is undefined also.  If etype is subtype, make sure that
        the subtraction is in the supertype.

From-SVN: r106400
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/gcc.c-torture/execute/pr22429.c [new file with mode: 0644]