From 116eebd67408bc31ca138311c8ac7f4d2389c22f Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sun, 19 Mar 2000 05:26:48 +0000 Subject: emit-rtl.c (remove_unncessary_notes): Check that all NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an... * emit-rtl.c (remove_unncessary_notes): Check that all NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an associated NOTE_BLOCK. * function.h (identify_blocks): Update comments. (reorder_blocks): Declare. * function.c (identify_blocks): Don't take paramters. (reorder_blocks): Don't take parameters. * loop.h (find_loop_tree_blocks): Remove. (unroll_block_trees): Likewise. * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use reorder_blocks instead of unroll_block_trees.h * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise. * stmt.c (find_loop_tree_blocks): Remove. (unroll_block_trees): Likewise. * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks in whole-function mode. * tree.h (reorder_blocks): Remove declaration. From-SVN: r32632 --- gcc/function.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gcc/function.h') diff --git a/gcc/function.h b/gcc/function.h index 8b26ec2e371..5c7aa414d30 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -303,7 +303,7 @@ struct function /* Nonzero if this function is being processed in function-at-a-time mode. In other words, if all tree structure for this function, - including the BLOCK tree is created, before RTL generation + including the BLOCK tree, is created before RTL generation commences. */ int x_whole_function_mode_p; @@ -548,10 +548,12 @@ struct function *find_function_data PARAMS ((tree)); /* Pointer to chain of `struct function' for containing functions. */ extern struct function *outer_function_chain; -/* Put all this function's BLOCK nodes into a vector and return it. - Also store in each NOTE for the beginning or end of a block - the index of that block in the vector. */ -extern void identify_blocks PARAMS ((tree, rtx)); +/* Set NOTE_BLOCK for each block note in the current function. */ +extern void identify_blocks PARAMS ((void)); + +/* Identify BLOCKs referenced by more than one NOTE_INSN_BLOCK_{BEG,END}, + and create duplicate blocks. */ +extern void reorder_blocks PARAMS ((void)); /* Set BLOCK_NUMBER for all the blocks in FN. */ extern void number_blocks PARAMS ((tree)); -- cgit v1.2.1