diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2007-08-16 14:31:21 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2007-08-16 14:31:21 +0000 |
commit | ac7d7749c082ec30d145860578ebd905a709ce50 (patch) | |
tree | 2a4c83e4c3dac3f7576d39fb5f61a4955aed2c98 /gcc/langhooks.c | |
parent | bc1edb77ba75d9a7b2c780a0fe8f04af0b3b6479 (diff) | |
download | gcc-ac7d7749c082ec30d145860578ebd905a709ce50.tar.gz |
c-common.c (const_strip_array_types): New.
* c-common.c (const_strip_array_types): New.
* c-common.h (lang_missing_noreturn_ok_p): Delete.
(const_strip_array_types): New.
* c-objc-common.c (c_disregard_inline_limits,
c_warn_unused_global_decl): Constify.
* c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
c_vla_type_p, c_incomplete_type_error): Likewise.
* c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
* hooks.c (hook_bool_const_tree_false): New.
* hooks.h (hook_bool_const_tree_false): Likewise.
* langhooks-def.h (lhd_warn_unused_global_decl,
lhd_incomplete_type_error, lhd_expr_size,
lhd_tree_inlining_disregard_inline_limits,
lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
* langhooks.c (lhd_warn_unused_global_decl,
lhd_incomplete_type_error,
lhd_tree_inlining_disregard_inline_limits,
lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
lhd_expr_size): Likewise.
* langhooks.h (lang_hooks_for_tree_inlining,
lang_hooks_for_tree_dump, lang_hooks_for_types,
lang_hooks_for_decls, lang_hooks): Likewise.
* pointer-set.c (pointer_set_t, pointer_set_create,
pointer_set_contains, insert_aux, pointer_set_insert,
pointer_set_traverse, pointer_map_t, pointer_map_create,
pointer_map_contains, pointer_map_insert, pointer_map_traverse):
Likewise.
* pointer-set.h (pointer_set_contains, pointer_set_insert,
pointer_set_traverse, pointer_map_contains, pointer_map_insert,
pointer_map_traverse): Likewise.
* predict.c (assert_is_empty): Likewise.
* tree-affine.c (free_name_expansion): Likewise.
* tree-cfg.c (edge_to_cases_cleanup): Likewise.
* tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
* tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
ada:
* misc.c (gnat_type_max_size): Constify.
cp:
* cp-objcp-common.c (cxx_warn_unused_global_decl, cp_expr_size):
Constify.
* cp-tree.h (local_variable_p, nonstatic_local_decl_p,
class_tmpl_impl_spec_p, cp_auto_var_in_fn_p, cp_type_quals,
cxx_incomplete_type_diagnostic, cxx_incomplete_type_error,
cxx_warn_unused_global_decl, cp_expr_size): Likewise.
* decl.c (local_variable_p, nonstatic_local_decl_p): Likewise.
* tree.c (class_tmpl_impl_spec_p, cp_auto_var_in_fn_p): Likewise.
* typeck.c (cp_type_quals): Likewise.
* typeck2.c (cxx_incomplete_type_diagnostic,
cxx_incomplete_type_error): Likewise.
From-SVN: r127560
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 1c9a6132c5e..1074615c72f 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -136,7 +136,7 @@ lhd_staticp (tree ARG_UNUSED (exp)) /* Called from check_global_declarations. */ bool -lhd_warn_unused_global_decl (tree decl) +lhd_warn_unused_global_decl (const_tree decl) { /* This is what used to exist in check_global_declarations. Probably not many of these actually apply to non-C languages. */ @@ -209,7 +209,7 @@ lhd_register_builtin_type (tree ARG_UNUSED (type), /* Invalid use of an incomplete type. */ void -lhd_incomplete_type_error (tree ARG_UNUSED (value), tree type) +lhd_incomplete_type_error (const_tree ARG_UNUSED (value), const_tree type) { gcc_assert (TREE_CODE (type) == ERROR_MARK); return; @@ -316,7 +316,7 @@ lhd_tree_inlining_cannot_inline_tree_fn (tree *fnp) if it would exceed inlining limits. */ int -lhd_tree_inlining_disregard_inline_limits (tree fn) +lhd_tree_inlining_disregard_inline_limits (const_tree fn) { if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) != NULL) return 1; @@ -328,7 +328,7 @@ lhd_tree_inlining_disregard_inline_limits (tree fn) whether VT is an automatic variable defined in function FT. */ int -lhd_tree_inlining_auto_var_in_fn_p (tree var, tree fn) +lhd_tree_inlining_auto_var_in_fn_p (const_tree var, const_tree fn) { return (DECL_P (var) && DECL_CONTEXT (var) == fn && (((TREE_CODE (var) == VAR_DECL || TREE_CODE (var) == PARM_DECL) @@ -351,7 +351,7 @@ lhd_tree_dump_dump_tree (void *di ATTRIBUTE_UNUSED, tree t ATTRIBUTE_UNUSED) language-specific way. */ int -lhd_tree_dump_type_quals (tree t) +lhd_tree_dump_type_quals (const_tree t) { return TYPE_QUALS (t); } @@ -360,7 +360,7 @@ lhd_tree_dump_type_quals (tree t) in a language-specific way. Returns a tree for the size in bytes. */ tree -lhd_expr_size (tree exp) +lhd_expr_size (const_tree exp) { if (DECL_P (exp) && DECL_SIZE_UNIT (exp) != 0) |