diff options
author | Jan Hubicka <jh@suse.cz> | 2002-12-02 19:44:05 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-12-02 18:44:05 +0000 |
commit | adc72fa6ce7c89cbf7f35d3b53c7067006517ec3 (patch) | |
tree | 13a76aab63fcdbe2ac4492ea14f0e6113a50ef08 | |
parent | 218e0eb6d392fa569352ec89b8b121dcfc840e7d (diff) | |
download | gcc-adc72fa6ce7c89cbf7f35d3b53c7067006517ec3.zip gcc-adc72fa6ce7c89cbf7f35d3b53c7067006517ec3.tar.gz gcc-adc72fa6ce7c89cbf7f35d3b53c7067006517ec3.tar.bz2 |
* i386.c (ix86_expand_int_movcc): Avoid overflow.
From-SVN: r59724
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad643b8..7d31afc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index e379c4a..80ee90e 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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); |