diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-09 02:37:54 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-09 02:37:54 +0000 |
commit | c6808e0ce438c903f62acd843bd732a989aa428e (patch) | |
tree | 1bfc19289d3c7307bd622bf5f3e65c6a3e3dea23 /gcc/cgraphunit.c | |
parent | d0e81fead8840531bcf73c86344bf4a50a75d9dd (diff) | |
download | gcc-c6808e0ce438c903f62acd843bd732a989aa428e.tar.gz |
* cgraphunit.c (cgraph_expand_function): Use
cgraph_possibly_inlined_p.
* tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
* opts.c (common_handle_option): Do not set max-inline-insns.
* params.def: Update comments.
(PARAM_MAX_INLINE_INSNS): Kill.
* invoke.texi (max-inline-insns): Kill.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73384 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 673419fa008..672b753bc46 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -486,7 +486,6 @@ static void cgraph_expand_function (struct cgraph_node *node) { tree decl = node->decl; - struct cgraph_edge *e; if (flag_unit_at_a_time) announce_function (decl); @@ -497,21 +496,8 @@ cgraph_expand_function (struct cgraph_node *node) via lang_expand_decl_stmt. */ (*lang_hooks.callgraph.expand_function) (decl); - if (!flag_unit_at_a_time) - { - if (!node->local.inlinable - || (!node->local.disregard_inline_limits - && !cgraph_default_inline_p (node))) - DECL_SAVED_TREE (node->decl) = NULL; - } - else - { - for (e = node->callers; e; e = e->next_caller) - if (e->inline_call) - break; - if (!e) - DECL_SAVED_TREE (decl) = NULL; - } + if (!cgraph_function_possibly_inlined_p (decl)) + DECL_SAVED_TREE (decl) = NULL; current_function_decl = NULL; } |