aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgbuild.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/cfgbuild.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/cfgbuild.c')
-rw-r--r--gcc/cfgbuild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c
index 3316f02..cb451ef 100644
--- a/gcc/cfgbuild.c
+++ b/gcc/cfgbuild.c
@@ -546,6 +546,8 @@ find_basic_blocks (rtx f, int nregs ATTRIBUTE_UNUSED,
find_basic_blocks_1 (f);
+ profile_status = PROFILE_ABSENT;
+
/* Discover the edges of our cfg. */
make_edges (ENTRY_BLOCK_PTR->next_bb, EXIT_BLOCK_PTR->prev_bb, 0);