aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.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-cfg.c
parentd4794d1a61d47a03acde40beaf0a372929212754 (diff)
downloadgcc-878f99d22982a567cffaa1c0c21fb52e230f867d.zip
gcc-878f99d22982a567cffaa1c0c21fb52e230f867d.tar.gz
gcc-878f99d22982a567cffaa1c0c21fb52e230f867d.tar.bz2
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-cfg.c')
-rw-r--r--gcc/tree-cfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 5765316..86ac7ee 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -125,6 +125,7 @@ build_tree_cfg (tree *tp)
/* Initialize the basic block array. */
init_flow ();
+ profile_status = PROFILE_ABSENT;
n_basic_blocks = 0;
last_basic_block = 0;
VARRAY_BB_INIT (basic_block_info, initial_cfg_capacity, "basic_block_info");
@@ -4396,6 +4397,7 @@ dump_function_to_file (tree fn, FILE *file, int flags)
if (basic_block_info)
{
/* Make a CFG based dump. */
+ check_bb_profile (ENTRY_BLOCK_PTR, file);
if (!ignore_topmost_bind)
fprintf (file, "{\n");
@@ -4406,6 +4408,7 @@ dump_function_to_file (tree fn, FILE *file, int flags)
dump_generic_bb (file, bb, 2, flags);
fprintf (file, "}\n");
+ check_bb_profile (EXIT_BLOCK_PTR, file);
}
else
{