summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/objc/objc-act.c9
-rw-r--r--gcc/tree.c4
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 7e9f8577a0e..2c152c7e312 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -4885,7 +4885,8 @@ objc_decl_method_attributes (tree *node, tree attributes, int flags)
number = TREE_VALUE (second_argument);
if (number && TREE_CODE (number) == INTEGER_CST)
TREE_VALUE (second_argument)
- = wide_int_to_tree (TREE_TYPE (number), wide_int (number) + 2);
+ = wide_int_to_tree (TREE_TYPE (number),
+ wi::add (number, 2));
/* This is the third argument, the "first-to-check",
which specifies the index of the first argument to
@@ -4895,7 +4896,8 @@ objc_decl_method_attributes (tree *node, tree attributes, int flags)
number = TREE_VALUE (third_argument);
if (number && TREE_CODE (number) == INTEGER_CST)
TREE_VALUE (third_argument)
- = wide_int_to_tree (TREE_TYPE (number), wide_int (number) + 2);
+ = wide_int_to_tree (TREE_TYPE (number),
+ wi::add (number, 2));
}
filtered_attributes = chainon (filtered_attributes,
new_attribute);
@@ -4930,7 +4932,8 @@ objc_decl_method_attributes (tree *node, tree attributes, int flags)
if (number && TREE_CODE (number) == INTEGER_CST
&& !wi::eq_p (number, 0))
TREE_VALUE (argument)
- = wide_int_to_tree (TREE_TYPE (number), wide_int (number) + 2);
+ = wide_int_to_tree (TREE_TYPE (number),
+ wi::add (number, 2));
argument = TREE_CHAIN (argument);
}
diff --git a/gcc/tree.c b/gcc/tree.c
index 1a310e6f1a4..91c7b3acc52 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1711,8 +1711,8 @@ real_value_from_int_cst (const_tree type, const_tree i)
bitwise comparisons to see if two values are the same. */
memset (&d, 0, sizeof d);
- real_from_integer (&d, type ? TYPE_MODE (type) : VOIDmode,
- wide_int (i), TYPE_SIGN (TREE_TYPE (i)));
+ real_from_integer (&d, type ? TYPE_MODE (type) : VOIDmode, i,
+ TYPE_SIGN (TREE_TYPE (i)));
return d;
}