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/c-decl.c | |
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/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4779406..f7996f1 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6444,7 +6444,7 @@ finish_function (nested, can_defer_p) predicates depend on cfun and current_function_decl to function completely. */ timevar_push (TV_INTEGRATION); - uninlinable = ! tree_inlinable_function_p (fndecl); + uninlinable = ! tree_inlinable_function_p (fndecl, 0); if (! uninlinable && can_defer_p /* Save function tree for inlining. Should return 0 if the |