aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-object-size.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-09-05 06:59:36 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2007-09-05 06:59:36 +0000
commitac545c6462ebcbb067b2895bee6a67a7eecca728 (patch)
tree171267b91dec3b204cb26bca86f8cc66a3ccb134 /gcc/tree-object-size.c
parentbda9fc3983d164a64512e0a5d5d845ea008502cc (diff)
downloadgcc-ac545c6462ebcbb067b2895bee6a67a7eecca728.zip
gcc-ac545c6462ebcbb067b2895bee6a67a7eecca728.tar.gz
gcc-ac545c6462ebcbb067b2895bee6a67a7eecca728.tar.bz2
fold-const.c (all_ones_mask_p, [...]): Constify.
* fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p, fold_real_zero_addition_p, reorder_operands_p, div_if_zero_remainder, fold_undefer_overflow_warnings, int_binop_types_match_p, fold_convert_const_int_from_int, fold_convert_const_int_from_real, fold_convert_const_int_from_fixed, fold_convert_const_real_from_real, fold_convert_const_real_from_fixed, fold_convert_const_fixed_from_fixed, fold_convert_const_fixed_from_int, fold_convert_const_fixed_from_real, maybe_lvalue_p, fold_checksum_tree, fold_check_failed, print_fold_checksum, debug_fold_checksum, multiple_of_p): Constify. * tree-flow-inline.h (get_lineno): Likewise. * tree-flow.h (get_lineno): Likewise. * tree-object-size.c (compute_object_offset, addr_object_size, alloc_object_size, pass_through_call): Likewise. * tree-pretty-print.c (op_symbol, print_call_name, print_struct_decl, do_niy): Likewise. * tree.h (fold_undefer_overflow_warnings, multiple_of_p, debug_fold_checksum): Likewise. From-SVN: r128120
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);