* i386.c (ix86_expand_int_movcc): Avoid overflow.
authorJan Hubicka <jh@suse.cz>
Mon, 2 Dec 2002 18:44:05 +0000 (19:44 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 2 Dec 2002 18:44:05 +0000 (18:44 +0000)
From-SVN: r59724

gcc/ChangeLog
gcc/config/i386/i386.c

index ad643b8a8080718df505308e1c90db0d426eb2e7..7d31afc3305c90f647f4bd1ae7c30ea4a5ee81a9 100644 (file)
@@ -1,3 +1,7 @@
+Mon Dec  2 19:42:52 CET 2002  Jan Hubicka  <jh@suse.cz>
+
+       * i386.c (ix86_expand_int_movcc):  Avoid overflow.
+
 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
index e379c4aa85fc030c70b66c64626a158c3c443d25..80ee90eadb9a20c1484a60e7fc3ba8a733f43573 100644 (file)
@@ -9031,7 +9031,7 @@ ix86_expand_int_movcc (operands)
          /* To simplify rest of code, restrict to the GEU case.  */
          if (compare_code == LTU)
            {
-             int tmp = ct;
+             HOST_WIDE_INT tmp = ct;
              ct = cf;
              cf = tmp;
              compare_code = reverse_condition (compare_code);