summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-03-05 17:30:22 -0800
committerYamaArashi <shadow962@live.com>2016-03-05 17:30:22 -0800
commit1f01ff809a107816317c4ac8a7eff1cbd3700370 (patch)
tree94d195909900f0f3ac91663a431de060e41c7abb /gcc/tree.c
parent7d46fa8f8f179c38d1ac777e72a381a46a3c5969 (diff)
make host wide int 32 bits
Diffstat (limited to 'gcc/tree.c')
-rwxr-xr-xgcc/tree.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index c84a165..0a5fb12 100755
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1428,7 +1428,7 @@ real_value_from_int_cst (type, i)
e = ((double) ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT / 2))
* (double) ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT / 2)));
d *= e;
- e = (double) (unsigned HOST_WIDE_INT) (~ TREE_INT_CST_LOW (i));
+ e = (double) (HOST_WIDE_UINT) (~ TREE_INT_CST_LOW (i));
d += e;
d = (- d - 1.0);
}
@@ -1436,11 +1436,11 @@ real_value_from_int_cst (type, i)
{
REAL_VALUE_TYPE e;
- d = (double) (unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (i);
+ d = (double) (HOST_WIDE_UINT) TREE_INT_CST_HIGH (i);
e = ((double) ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT / 2))
* (double) ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT / 2)));
d *= e;
- e = (double) (unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (i);
+ e = (double) (HOST_WIDE_UINT) TREE_INT_CST_LOW (i);
d += e;
}
#endif /* not REAL_ARITHMETIC */
@@ -4147,7 +4147,7 @@ build_range_type (type, lowval, highval)
if (highval && TREE_CODE (highval) == INTEGER_CST)
highint = TREE_INT_CST_LOW (highval);
else
- highint = (~(unsigned HOST_WIDE_INT)0) >> 1;
+ highint = (~(HOST_WIDE_UINT)0) >> 1;
maxint = (int) (highint - lowint);
return type_hash_canon (maxint < 0 ? ~maxint : maxint, itype);
@@ -4792,8 +4792,8 @@ append_random_chars (template)
{
static const char letters[]
= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- static unsigned HOST_WIDE_INT value;
- unsigned HOST_WIDE_INT v;
+ static HOST_WIDE_UINT value;
+ HOST_WIDE_UINT v;
#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
@@ -4804,7 +4804,7 @@ append_random_chars (template)
#ifdef HAVE_GETTIMEOFDAY
/* Get some more or less random data. */
gettimeofday (&tv, NULL);
- value += ((unsigned HOST_WIDE_INT) tv.tv_usec << 16) ^ tv.tv_sec ^ getpid ();
+ value += ((HOST_WIDE_UINT) tv.tv_usec << 16) ^ tv.tv_sec ^ getpid ();
#else
value += getpid ();
#endif