diff options
author | Richard Guenther <rguenther@suse.de> | 2007-08-20 11:28:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-08-20 11:28:14 +0000 |
commit | 50886bf1f9143bd97180043ceaddde5061d43e78 (patch) | |
tree | 7a357b039785ec8b4512742e9512b49128d47deb /gcc/langhooks.c | |
parent | 145881069e8d5a19e131b5c1922bdb2e27b708da (diff) | |
download | gcc-50886bf1f9143bd97180043ceaddde5061d43e78.zip gcc-50886bf1f9143bd97180043ceaddde5061d43e78.tar.gz gcc-50886bf1f9143bd97180043ceaddde5061d43e78.tar.bz2 |
langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
2007-08-20 Richard Guenther <rguenther@suse.de>
* langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
(LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
(LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
auto_var_in_fn_p langhook.
* langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
move ...
* tree.c (auto_var_in_fn_p): ... here.
(find_var_from_fn): Call auto_var_in_fn_p directly.
* langhooks.h (lang_hooks_for_tree_inlining): Remove
auto_var_in_fn_p langhook.
* tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
(copy_body_r): Likewise.
(self_inlining_addr_expr): Likewise.
* tree.h (auto_var_in_fn_p): Declare.
cp/
* cp-objcp-common.h (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P):
Remove.
* cp-tree.h (cp_auto_var_in_fn_p): Remove.
(nonstatic_local_decl_p): Likewise.
* tree.c (cp_auto_var_in_fn_p): Remove.
* decl.c (nonstatic_local_decl_p): Remove.
From-SVN: r127643
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 8260b31..2a731b7 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -303,19 +303,6 @@ lhd_tree_inlining_disregard_inline_limits (const_tree fn) return 0; } -/* lang_hooks.tree_inlining.auto_var_in_fn_p is called to determine - whether VT is an automatic variable defined in function FT. */ - -int -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) - && ! TREE_STATIC (var)) - || TREE_CODE (var) == LABEL_DECL - || TREE_CODE (var) == RESULT_DECL)); -} - /* lang_hooks.tree_dump.dump_tree: Dump language-specific parts of tree nodes. Returns nonzero if it does not want the usual dumping of the second argument. */ |