diff options
author | Jan Hubicka <jh@suse.cz> | 2003-03-08 14:26:37 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-03-08 13:26:37 +0000 |
commit | 18d13f34175f157bc3152afdf48da798452afc1b (patch) | |
tree | 8a4f34953d22192851b98b6fb46d7a44532ecfc0 /gcc/tree-inline.h | |
parent | 4a07c08a47f2a4fbce5634b93834ed824ebafc79 (diff) | |
download | gcc-18d13f34175f157bc3152afdf48da798452afc1b.zip gcc-18d13f34175f157bc3152afdf48da798452afc1b.tar.gz gcc-18d13f34175f157bc3152afdf48da798452afc1b.tar.bz2 |
inline-3.c: New test.
* gcc.dg/inline-3.c: New test.
* c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
* cgraph.h: (cgraph_local_info): Add can_inline_once
(cgraph_global_info): Add inline_once.
(cgraph_node): Add previous.
(cgraph_remove_node): New.
* cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
function.
(cgraph_optimize): Call it.
(cgraph_finalize_function): Set inlinable flags.
(cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
(cgraph_mark_functions_to_output): Use new inlining heuristics flags.
(cgraph_expand_function): Likewise.
* cgraph.c
(cgraph_node): Put nodes into doubly linked chain.
(cgraph_remove_node): New function.
* flags.h (flag_inline_functions_called_once): Declare.
* tree-inline.c: Include cgraph.h
(inlinable_functions_p): Add extra argument to bypass limits.
(expand_call_inline): Obey cgraph flag.
* tree-inline.h (tree_inlinable_function_p): Update prototype.
From-SVN: r63983
Diffstat (limited to 'gcc/tree-inline.h')
-rw-r--r-- | gcc/tree-inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h index 9c11436..0b9fc89 100644 --- a/gcc/tree-inline.h +++ b/gcc/tree-inline.h @@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA. */ /* Function prototypes. */ void optimize_inline_calls PARAMS ((tree)); -int tree_inlinable_function_p PARAMS ((tree)); +int tree_inlinable_function_p PARAMS ((tree, int)); tree walk_tree PARAMS ((tree*, walk_tree_fn, void*, void*)); tree walk_tree_without_duplicates PARAMS ((tree*, walk_tree_fn, void*)); tree copy_tree_r PARAMS ((tree*, int*, void*)); |