aboutsummaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@gcc.gnu.org>2008-05-16 09:36:26 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2008-05-16 09:36:26 -0400
commit9defb1fe37d0ff78a3a8f4729e4f51a957ec902e (patch)
tree83954b55280032f81a5047d421f35181d5f9ce50 /gcc/basic-block.h
parent3e894af1569a84c5bb6eb730266248e6a4cae2de (diff)
downloadgcc-9defb1fe37d0ff78a3a8f4729e4f51a957ec902e.zip
gcc-9defb1fe37d0ff78a3a8f4729e4f51a957ec902e.tar.gz
gcc-9defb1fe37d0ff78a3a8f4729e4f51a957ec902e.tar.bz2
[multiple changes]
2008-05-16 Nathan Froyd <froydnj@codesourcery.com> * tree-flow.h (init_empty_tree_cfg_for_function): Declare. * tree-cfg.c (init_empty_tree_cfg_for_function): Define. (init_empty_tree_cfg): Call it. 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com> * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun. Update all users. From-SVN: r135418
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index a2598df..53e8a8b 100644
--- a/gcc/basic-block.h
+++ b/gcc/basic-block.h
@@ -414,9 +414,12 @@ struct control_flow_graph GTY(())
#define n_edges_for_function(FN) ((FN)->cfg->x_n_edges)
#define last_basic_block_for_function(FN) ((FN)->cfg->x_last_basic_block)
#define label_to_block_map_for_function(FN) ((FN)->cfg->x_label_to_block_map)
+#define profile_status_for_function(FN) ((FN)->cfg->x_profile_status)
#define BASIC_BLOCK_FOR_FUNCTION(FN,N) \
(VEC_index (basic_block, basic_block_info_for_function(FN), (N)))
+#define SET_BASIC_BLOCK_FOR_FUNCTION(FN,N,BB) \
+ (VEC_replace (basic_block, basic_block_info_for_function(FN), (N), (BB)))
/* Defines for textual backward source compatibility. */
#define ENTRY_BLOCK_PTR (cfun->cfg->x_entry_block_ptr)
@@ -839,7 +842,7 @@ extern bool br_prob_note_reliable_p (const_rtx);
/* In cfg.c */
extern void dump_regset (regset, FILE *);
extern void debug_regset (regset);
-extern void init_flow (void);
+extern void init_flow (struct function *);
extern void debug_bb (basic_block);
extern basic_block debug_bb_n (int);
extern void dump_regset (regset, FILE *);