From 59d142eb8e568c760c374ec99b7dc22521c67cbc Mon Sep 17 00:00:00 2001
From: echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 14 Jul 2005 23:36:31 +0000
Subject: [PATCH] 2005-07-14  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.c (mips_canonicalize_comparison): Cast
	argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102041 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog          | 5 +++++
 gcc/config/mips/mips.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0480a22c9276..c549b2882085 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-14  Eric Christopher  <echristo@redhat.com>
+
+	* config/mips/mips.c (mips_canonicalize_comparison): Cast
+	argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
+
 2005-07-14  Eric Christopher  <echristo@redhat.com>
 
 	* config/s390/t-tpf (SHLIB_MAPFILES): Remove.
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 0dee266559d6..c316ef1c30c1 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -2895,7 +2895,7 @@ mips_canonicalize_comparison (enum rtx_code *code, rtx *cmp1,
     return false;
   
   original = INTVAL (*cmp1);
-  plus_one = trunc_int_for_mode (original + 1, mode);
+  plus_one = trunc_int_for_mode ((unsigned HOST_WIDE_INT) original + 1, mode);
   
   switch (*code)
     {
-- 
GitLab