summaryrefslogtreecommitdiff
path: root/gcc/c-typeck.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/c-typeck.c
parent7d46fa8f8f179c38d1ac777e72a381a46a3c5969 (diff)
make host wide int 32 bits
Diffstat (limited to 'gcc/c-typeck.c')
-rwxr-xr-xgcc/c-typeck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 616d7ab..b351ffb 100755
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -2133,7 +2133,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
if (TREE_INT_CST_LOW (op1) | TREE_INT_CST_HIGH (op1))
short_shift = 1;
if (TREE_INT_CST_HIGH (op1) != 0
- || ((unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (op1)
+ || ((HOST_WIDE_UINT) TREE_INT_CST_LOW (op1)
>= TYPE_PRECISION (type0)))
warning ("right shift count >= width of type");
}
@@ -2161,7 +2161,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
if (tree_int_cst_sgn (op1) < 0)
warning ("left shift count is negative");
else if (TREE_INT_CST_HIGH (op1) != 0
- || ((unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (op1)
+ || ((HOST_WIDE_UINT) TREE_INT_CST_LOW (op1)
>= TYPE_PRECISION (type0)))
warning ("left shift count >= width of type");
}
@@ -2189,7 +2189,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
if (tree_int_cst_sgn (op1) < 0)
warning ("shift count is negative");
else if (TREE_INT_CST_HIGH (op1) != 0
- || ((unsigned HOST_WIDE_INT) TREE_INT_CST_LOW (op1)
+ || ((HOST_WIDE_UINT) TREE_INT_CST_LOW (op1)
>= TYPE_PRECISION (type0)))
warning ("shift count >= width of type");
}