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 /gcc/cp/tree.c | |
parent | 8e5f08fe2c0c8f7b1381e17cb6c9c9f63412525d (diff) | |
download | ppe42-gcc-94be3290699b255ce64f618ea7a1acd605b32651.tar.gz ppe42-gcc-94be3290699b255ce64f618ea7a1acd605b32651.zip |
* 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
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 20 |
1 files changed, 0 insertions, 20 deletions
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. */ |