aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 8127437..02e6664 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1546,7 +1546,7 @@ shift_return_value (rtx val)
if (shift > 0)
val = expand_shift (LSHIFT_EXPR, GET_MODE (target),
gen_lowpart (GET_MODE (target), val),
- build_int_cst (NULL_TREE, shift, 0), target, 1);
+ build_int_cst (NULL_TREE, shift), target, 1);
}
return val;
}
@@ -2554,8 +2554,9 @@ expand_case (tree exp)
if (TREE_CODE (index_expr) != INTEGER_CST)
{
index_expr
- = build_int_cst (NULL_TREE, INTVAL (index),
- unsignedp || INTVAL (index) >= 0 ? 0 : -1);
+ = build_int_cst_wide (NULL_TREE, INTVAL (index),
+ unsignedp || INTVAL (index) >= 0
+ ? 0 : -1);
index_expr = convert (index_type, index_expr);
}
@@ -2727,7 +2728,7 @@ estimate_case_costs (case_node_ptr node)
{
tree min_ascii = integer_minus_one_node;
tree max_ascii = convert (TREE_TYPE (node->high),
- build_int_cst (NULL_TREE, 127, 0));
+ build_int_cst (NULL_TREE, 127));
case_node_ptr n;
int i;