diff options
author | Martin Jambor <mjambor@suse.cz> | 2011-03-28 14:15:44 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2011-03-28 14:15:44 +0200 |
commit | 322dd85963282f7b28ae25ccaafbf45ab2c9145d (patch) | |
tree | af67dd327ad63f08a6c47d5f6e9ec258c665e64e /gcc/cgraph.c | |
parent | aa53e58b920d4fe4bbdb26e227401ad827c52a57 (diff) | |
download | gcc-322dd85963282f7b28ae25ccaafbf45ab2c9145d.zip gcc-322dd85963282f7b28ae25ccaafbf45ab2c9145d.tar.gz gcc-322dd85963282f7b28ae25ccaafbf45ab2c9145d.tar.bz2 |
tree-inline.c (expand_call_inline): Do not check that destination node is analyzed.
2011-03-28 Martin Jambor <mjambor@suse.cz>
* tree-inline.c (expand_call_inline): Do not check that destination
node is analyzed.
(optimize_inline_calls): Assert that destination node is analyzed.
* cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
not call tree_lowering_passes.
* cgraph.h (cgraph_analyze_function): Declare.
* cgraphunit.c (cgraph_analyze_function): Make public.
From-SVN: r171602
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 64d278f..3cf75f2 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2495,11 +2495,13 @@ cgraph_add_new_function (tree fndecl, bool lowered) case CGRAPH_STATE_FINISHED: /* At the very end of compilation we have to do all the work up to expansion. */ + node = cgraph_node (fndecl); + if (lowered) + node->lowered = true; + cgraph_analyze_function (node); push_cfun (DECL_STRUCT_FUNCTION (fndecl)); current_function_decl = fndecl; gimple_register_cfg_hooks (); - if (!lowered) - tree_lowering_passes (fndecl); bitmap_obstack_initialize (NULL); if (!gimple_in_ssa_p (DECL_STRUCT_FUNCTION (fndecl))) execute_pass_list (pass_early_local_passes.pass.sub); |