From 1f01ff809a107816317c4ac8a7eff1cbd3700370 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 5 Mar 2016 17:30:22 -0800 Subject: make host wide int 32 bits --- gcc/c-typeck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/c-typeck.c') 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"); } -- cgit v1.2.3