diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 0e4cf0c..f2289fe 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6783,13 +6783,12 @@ c_expand_body (fndecl, nested_p, can_defer_p) if (flag_syntax_only) return; - timevar_push (TV_EXPAND); - if (flag_inline_trees) { /* First, cache whether the current function is inlinable. Some predicates depend on cfun and current_function_decl to function completely. */ + timevar_push (TV_INTEGRATION); uninlinable = ! tree_inlinable_function_p (fndecl); if (! uninlinable && can_defer_p @@ -6800,13 +6799,17 @@ c_expand_body (fndecl, nested_p, can_defer_p) { /* Let the back-end know that this funtion exists. */ (*debug_hooks->deferred_inline_function) (fndecl); + timevar_pop (TV_INTEGRATION); return; } /* Then, inline any functions called in it. */ optimize_inline_calls (fndecl); + timevar_pop (TV_INTEGRATION); } + timevar_push (TV_EXPAND); + if (nested_p) { /* Make sure that we will evaluate variable-sized types involved |