diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-08 13:14:39 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-08 13:14:39 +0000 |
commit | 94be3290699b255ce64f618ea7a1acd605b32651 (patch) | |
tree | 3131cbc57239573b2da8bd670e8d0495b8a896a9 | |
parent | 8e5f08fe2c0c8f7b1381e17cb6c9c9f63412525d (diff) | |
download | gcc-94be3290699b255ce64f618ea7a1acd605b32651.tar.gz |
* langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
lhd_tree_inlining_end_inlining): Remove.
* langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
end_inlining hooks.
* langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
lhd_tree_inlining_end_inlining): Remove prototypes.
(LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
LANG_HOOKS_TREE_INLINING_START_INLINING,
LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
* c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
not set it.
cp/
* cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS):
Do not set it.
(LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do not set it.
* tree.c (cp_add_pending_fn_decls): Remove.
* cp-tree.h (cp_add_pending_fn_decls): Remove prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123658 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 19 | ||||
-rw-r--r-- | gcc/c-objc-common.h | 3 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/cp-objcp-common.h | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 1 | ||||
-rw-r--r-- | gcc/cp/tree.c | 20 | ||||
-rw-r--r-- | gcc/langhooks-def.h | 16 | ||||
-rw-r--r-- | gcc/langhooks.c | 42 | ||||
-rw-r--r-- | gcc/langhooks.h | 4 |
9 files changed, 27 insertions, 91 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d221bbf1c9b..ac16f435283 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,22 @@ +2007-04-08 Steven Bosscher <steven@gcc.gnu.org> + + * langhooks.c (lhd_tree_inlining_add_pending_fn_decls, + lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining, + lhd_tree_inlining_end_inlining): Remove. + * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then + add_pending_fn_decls, anon_aggr_type_p, start_inlining, and + end_inlining hooks. + * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls, + lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining, + lhd_tree_inlining_end_inlining): Remove prototypes. + (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS, + LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P, + LANG_HOOKS_TREE_INLINING_START_INLINING, + LANG_HOOKS_TREE_INLINING_END_INLINING): Remove. + + * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do + not set it. + 2007-04-08 Anatoly Sokolov <aesok@post.ru> PR target/29932 diff --git a/gcc/c-objc-common.h b/gcc/c-objc-common.h index f3f0867e958..78438ad9ef8 100644 --- a/gcc/c-objc-common.h +++ b/gcc/c-objc-common.h @@ -89,9 +89,6 @@ extern void c_initialize_diagnostics (diagnostic_context *); #undef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS #define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \ c_disregard_inline_limits -#undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P -#define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \ - anon_aggr_type_p #undef LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING #define LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING \ c_convert_parm_for_inlining diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 32f6829bce8..2dd5fe46138 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,11 @@ +2007-04-08 Steven Bosscher <steven@gcc.gnu.org> + + * cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS): + Do not set it. + (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do not set it. + * tree.c (cp_add_pending_fn_decls): Remove. + * cp-tree.h (cp_add_pending_fn_decls): Remove prototype. + 2007-04-07 Daniel Berlin <dberlin@dberlin.org> Revert change removing staticp. diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h index 23e1f0ffff1..2c0dd838e8e 100644 --- a/gcc/cp/cp-objcp-common.h +++ b/gcc/cp/cp-objcp-common.h @@ -111,14 +111,9 @@ extern tree objcp_tsubst_copy_and_build (tree, tree, tsubst_flags_t, #undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN #define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \ cp_cannot_inline_tree_fn -#undef LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS -#define LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS \ - cp_add_pending_fn_decls #undef LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P #define LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P \ cp_auto_var_in_fn_p -#undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P -#define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P anon_aggr_type_p #undef LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P #define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P cp_var_mod_type_p #undef LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 3b3821ef257..68d8f5ad889 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4686,7 +4686,6 @@ extern linkage_kind decl_linkage (tree); extern tree cp_walk_subtrees (tree*, int*, walk_tree_fn, void*, struct pointer_set_t*); extern int cp_cannot_inline_tree_fn (tree*); -extern tree cp_add_pending_fn_decls (void*,tree); extern int cp_auto_var_in_fn_p (tree,tree); extern tree fold_if_not_in_template (tree); extern tree rvalue (tree); diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 78a3520dd98..30aa359219f 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2362,26 +2362,6 @@ cp_cannot_inline_tree_fn (tree* fnp) return 0; } -/* Add any pending functions other than the current function (already - handled by the caller), that thus cannot be inlined, to FNS_P, then - return the latest function added to the array, PREV_FN. */ - -tree -cp_add_pending_fn_decls (void* fns_p, tree prev_fn) -{ - varray_type *fnsp = (varray_type *)fns_p; - struct saved_scope *s; - - for (s = scope_chain; s; s = s->prev) - if (s->function_decl && s->function_decl != prev_fn) - { - VARRAY_PUSH_TREE (*fnsp, s->function_decl); - prev_fn = s->function_decl; - } - - return prev_fn; -} - /* Determine whether VAR is a declaration of an automatic variable in function FN. */ diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index 004b3c56f42..d6d6b33b9ff 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -76,11 +76,7 @@ extern tree lhd_tree_inlining_walk_subtrees (tree *, int *, walk_tree_fn, void *, struct pointer_set_t*); extern int lhd_tree_inlining_cannot_inline_tree_fn (tree *); extern int lhd_tree_inlining_disregard_inline_limits (tree); -extern tree lhd_tree_inlining_add_pending_fn_decls (void *, tree); extern int lhd_tree_inlining_auto_var_in_fn_p (tree, tree); -extern int lhd_tree_inlining_anon_aggr_type_p (tree); -extern int lhd_tree_inlining_start_inlining (tree); -extern void lhd_tree_inlining_end_inlining (tree); extern tree lhd_tree_inlining_convert_parm_for_inlining (tree, tree, tree, int); extern void lhd_initialize_diagnostics (struct diagnostic_context *); extern tree lhd_callgraph_analyze_expr (tree *, int *, tree); @@ -150,18 +146,10 @@ extern void lhd_omp_firstprivatize_type_sizes (struct gimplify_omp_ctx *, lhd_tree_inlining_cannot_inline_tree_fn #define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \ lhd_tree_inlining_disregard_inline_limits -#define LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS \ - lhd_tree_inlining_add_pending_fn_decls #define LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P \ lhd_tree_inlining_auto_var_in_fn_p -#define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \ - lhd_tree_inlining_anon_aggr_type_p #define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P \ hook_bool_tree_tree_false -#define LANG_HOOKS_TREE_INLINING_START_INLINING \ - lhd_tree_inlining_start_inlining -#define LANG_HOOKS_TREE_INLINING_END_INLINING \ - lhd_tree_inlining_end_inlining #define LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING \ lhd_tree_inlining_convert_parm_for_inlining @@ -169,12 +157,8 @@ extern void lhd_omp_firstprivatize_type_sizes (struct gimplify_omp_ctx *, LANG_HOOKS_TREE_INLINING_WALK_SUBTREES, \ LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN, \ LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS, \ - LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS, \ LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P, \ - LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P, \ LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P, \ - LANG_HOOKS_TREE_INLINING_START_INLINING, \ - LANG_HOOKS_TREE_INLINING_END_INLINING, \ LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING \ } diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 919f05dea7d..ebd20b9ee72 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -318,19 +318,6 @@ lhd_tree_inlining_disregard_inline_limits (tree fn) return 0; } -/* lang_hooks.tree_inlining.add_pending_fn_decls is called before - starting to inline a function, to push any language-specific - functions that should not be inlined into the current function, - into VAFNP. PFN is the top of varray, and should be returned if no - functions are pushed into VAFNP. The top of the varray should be - returned. */ - -tree -lhd_tree_inlining_add_pending_fn_decls (void *vafnp ATTRIBUTE_UNUSED, tree pfn) -{ - return pfn; -} - /* lang_hooks.tree_inlining.auto_var_in_fn_p is called to determine whether VT is an automatic variable defined in function FT. */ @@ -344,35 +331,6 @@ lhd_tree_inlining_auto_var_in_fn_p (tree var, tree fn) || TREE_CODE (var) == RESULT_DECL)); } -/* lang_hooks.tree_inlining.anon_aggr_type_p determines whether T is a - type node representing an anonymous aggregate (union, struct, etc), - i.e., one whose members are in the same scope as the union itself. */ - -int -lhd_tree_inlining_anon_aggr_type_p (tree t ATTRIBUTE_UNUSED) -{ - return 0; -} - -/* lang_hooks.tree_inlining.start_inlining and end_inlining perform any - language-specific bookkeeping necessary for processing - FN. start_inlining returns nonzero if inlining should proceed, zero if - not. - - For instance, the C++ version keeps track of template instantiations to - avoid infinite recursion. */ - -int -lhd_tree_inlining_start_inlining (tree fn ATTRIBUTE_UNUSED) -{ - return 1; -} - -void -lhd_tree_inlining_end_inlining (tree fn ATTRIBUTE_UNUSED) -{ -} - /* lang_hooks.tree_inlining.convert_parm_for_inlining performs any language-specific conversion before assigning VALUE to PARM. */ diff --git a/gcc/langhooks.h b/gcc/langhooks.h index f0220fc91c3..39066959a1c 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -40,12 +40,8 @@ struct lang_hooks_for_tree_inlining void *, struct pointer_set_t*); int (*cannot_inline_tree_fn) (tree *); int (*disregard_inline_limits) (tree); - tree (*add_pending_fn_decls) (void *, tree); int (*auto_var_in_fn_p) (tree, tree); - int (*anon_aggr_type_p) (tree); bool (*var_mod_type_p) (tree, tree); - int (*start_inlining) (tree); - void (*end_inlining) (tree); tree (*convert_parm_for_inlining) (tree, tree, tree, int); }; |