diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index ba17d46..c4c6edc 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1411,7 +1411,7 @@ fold_negate_expr (tree t) { tree ntype = TYPE_UNSIGNED (type) ? lang_hooks.types.signed_type (type) - : lang_hooks.types.unsigned_type (type); + : unsigned_type_for (type); tree temp = fold_convert (ntype, TREE_OPERAND (t, 0)); temp = fold_build2 (RSHIFT_EXPR, ntype, temp, op1); return fold_convert (type, temp); @@ -4352,7 +4352,7 @@ build_range_check (tree type, tree exp, int in_p, tree low, tree high) { if (! TYPE_UNSIGNED (etype)) { - etype = lang_hooks.types.unsigned_type (etype); + etype = unsigned_type_for (etype); high = fold_convert (etype, high); exp = fold_convert (etype, exp); } @@ -4420,7 +4420,7 @@ build_range_check (tree type, tree exp, int in_p, tree low, tree high) /* Check if (unsigned) INT_MAX + 1 == (unsigned) INT_MIN for the type in question, as we rely on this here. */ - utype = lang_hooks.types.unsigned_type (etype); + utype = unsigned_type_for (etype); maxv = fold_convert (utype, TYPE_MAX_VALUE (etype)); maxv = range_binop (PLUS_EXPR, NULL_TREE, maxv, 1, integer_one_node, 1); @@ -7798,7 +7798,7 @@ fold_unary (enum tree_code code, tree type, tree op0) && (LOAD_EXTEND_OP (TYPE_MODE (TREE_TYPE (and0))) == ZERO_EXTEND)) { - tree uns = lang_hooks.types.unsigned_type (TREE_TYPE (and0)); + tree uns = unsigned_type_for (TREE_TYPE (and0)); and0 = fold_convert (uns, and0); and1 = fold_convert (uns, and1); } @@ -11220,7 +11220,7 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1) || TREE_CODE (arg0) == ROUND_MOD_EXPR) && integer_pow2p (TREE_OPERAND (arg0, 1))) { - tree newtype = lang_hooks.types.unsigned_type (TREE_TYPE (arg0)); + tree newtype = unsigned_type_for (TREE_TYPE (arg0)); tree newmod = fold_build2 (TREE_CODE (arg0), newtype, fold_convert (newtype, TREE_OPERAND (arg0, 0)), @@ -12329,7 +12329,7 @@ fold_ternary (enum tree_code code, tree type, tree op0, tree op1, tree op2) else if ((TREE_INT_CST_HIGH (arg1) & mask_hi) == 0 && (TREE_INT_CST_LOW (arg1) & mask_lo) == 0) { - tem_type = lang_hooks.types.unsigned_type (TREE_TYPE (tem)); + tem_type = unsigned_type_for (TREE_TYPE (tem)); tem = fold_convert (tem_type, tem); } else |