aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-object-size.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-object-size.c')
-rw-r--r--gcc/tree-object-size.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c
index 65711c9..371e3e5 100644
--- a/gcc/tree-object-size.c
+++ b/gcc/tree-object-size.c
@@ -41,10 +41,10 @@ struct object_size_info
static unsigned HOST_WIDE_INT unknown[4] = { -1, -1, 0, 0 };
-static tree compute_object_offset (tree, tree);
-static unsigned HOST_WIDE_INT addr_object_size (tree, int);
-static unsigned HOST_WIDE_INT alloc_object_size (tree, int);
-static tree pass_through_call (tree);
+static tree compute_object_offset (const_tree, const_tree);
+static unsigned HOST_WIDE_INT addr_object_size (const_tree, int);
+static unsigned HOST_WIDE_INT alloc_object_size (const_tree, int);
+static tree pass_through_call (const_tree);
static void collect_object_sizes_for (struct object_size_info *, tree);
static void expr_object_size (struct object_size_info *, tree, tree);
static bool merge_object_sizes (struct object_size_info *, tree, tree,
@@ -88,7 +88,7 @@ init_offset_limit (void)
if unknown. */
static tree
-compute_object_offset (tree expr, tree var)
+compute_object_offset (const_tree expr, const_tree var)
{
enum tree_code code = PLUS_EXPR;
tree base, off, t;
@@ -152,7 +152,7 @@ compute_object_offset (tree expr, tree var)
If unknown, return unknown[object_size_type]. */
static unsigned HOST_WIDE_INT
-addr_object_size (tree ptr, int object_size_type)
+addr_object_size (const_tree ptr, int object_size_type)
{
tree pt_var;
@@ -226,7 +226,7 @@ addr_object_size (tree ptr, int object_size_type)
unknown[object_size_type]. */
static unsigned HOST_WIDE_INT
-alloc_object_size (tree call, int object_size_type)
+alloc_object_size (const_tree call, int object_size_type)
{
tree callee, bytes = NULL_TREE;
tree alloc_size;
@@ -287,7 +287,7 @@ alloc_object_size (tree call, int object_size_type)
Otherwise return NULL. */
static tree
-pass_through_call (tree call)
+pass_through_call (const_tree call)
{
tree callee = get_callee_fndecl (call);