summaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-08-04 23:37:06 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2004-08-04 21:37:06 +0000
commit878f99d22982a567cffaa1c0c21fb52e230f867d (patch)
tree14f9d312df96f3a3cf47a367e3b936b8d773c4fe /gcc/tree-profile.c
parentd4794d1a61d47a03acde40beaf0a372929212754 (diff)
downloadgcc-878f99d22982a567cffaa1c0c21fb52e230f867d.tar.gz
basic-block.h (profile_staus): New global variable.
* basic-block.h (profile_staus): New global variable. * cfg.c (profile_status): Declare. (check_bb_profile): Break out from ....; use profile_status (dump_flow_info): ... here. * cfgbuild.c (find_basic_blocks): Set profile_status. * cfgexpand.c (tree_expand_cfg): Likewise. * predict.c (estimate_probability): Likewise. * profile.c (branch_prob): Likewise. * tree-cfg.c (build_tree_cfg): Likewise. (dump_function_to_file): Use check_bb_profile. * tree-pretty-print (dump_bb_header): Likewise. * tree-profile.c (do_tree_profiling): Cleanup. From-SVN: r85579
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index c1498ea8d5c..1a7b744f3a7 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -146,7 +146,8 @@ tree_gen_const_delta_profiler (struct histogram_value *value ATTRIBUTE_UNUSED,
If it is, set up hooks for tree-based profiling.
Gate for pass_tree_profile. */
-static bool do_tree_profiling (void) {
+static bool do_tree_profiling (void)
+{
if (flag_tree_based_profiling)
{
tree_register_profile_hooks ();