summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-11-14 20:36:17 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2001-11-14 19:36:17 +0000
commit497786446ba35ea6814862bcd76851e1379653ab (patch)
tree8373fb038b6e57cf4216b741d08ffb702752c650 /gcc/c-decl.c
parent852d3dad0dc7b0ed7144b1409393997830eab8d2 (diff)
downloadgcc-497786446ba35ea6814862bcd76851e1379653ab.tar.gz
cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
* cfglayout.c (fixup_fallthru_exit_predecesor): New static function. (cfg_layout_finalize): Use it. * bb-reorder.c (HAVE_epilogue): Remove. (make_reorder_chain): Do not care special placement of last basic block. * predict.c (expected_value_to_br_prob): Delete the note once transformed. * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem; measure integration time separately. From-SVN: r47019
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0e4cf0c6b52..f2289fec3aa 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