summaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-22 22:20:42 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-22 22:20:42 +0000
commitbdd4d9fce513d45ba56bab83008ae324f120ac7c (patch)
tree6a6c46aab4b02ff1686a4500b33664db8735565c /gcc/flow.c
parent8027d38a60e6943dc925c7625dc9aa0468d84b81 (diff)
downloadgcc-bdd4d9fce513d45ba56bab83008ae324f120ac7c.tar.gz
2001-06-22 Diego Novillo <dnovillo@redhat.com>
* basic-block.h (dump_edge_info): Declare. (clear_edges): Declare. (mark_critical_edges): Declare. * flow.c (dump_edge_info): Remove static declaration. (clear_edges): Ditto. (mark_critical_edges): Ditto. (free_basic_block_vars): Only clear edges and free basic block array if basic_block_info is not NULL. * ssa.c (compute_dominance_frontiers): Remove static declaration. * ssa.h (compute_dominance_frontiers): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43518 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index b3d43278477..2d7ee8047d9 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -364,12 +364,10 @@ typedef struct depth_first_search_dsS *depth_first_search_ds;
static int count_basic_blocks PARAMS ((rtx));
static void find_basic_blocks_1 PARAMS ((rtx));
static rtx find_label_refs PARAMS ((rtx, rtx));
-static void clear_edges PARAMS ((void));
static void make_edges PARAMS ((rtx));
static void make_label_edge PARAMS ((sbitmap *, basic_block,
rtx, int));
static void make_eh_edge PARAMS ((sbitmap *, basic_block, rtx));
-static void mark_critical_edges PARAMS ((void));
static void commit_one_edge_insertion PARAMS ((edge));
@@ -434,7 +432,6 @@ static void mark_used_regs PARAMS ((struct propagate_block_info *,
rtx, rtx, rtx));
void dump_flow_info PARAMS ((FILE *));
void debug_flow_info PARAMS ((void));
-static void dump_edge_info PARAMS ((FILE *, edge, int));
static void print_rtl_and_abort_fcn PARAMS ((const char *, int,
const char *))
ATTRIBUTE_NORETURN;
@@ -1118,7 +1115,7 @@ compute_bb_for_insn (max)
/* Free the memory associated with the edge structures. */
-static void
+void
clear_edges ()
{
int i;
@@ -1432,7 +1429,7 @@ make_eh_edge (edge_cache, src, insn)
/* Identify critical edges and set the bits appropriately. */
-static void
+void
mark_critical_edges ()
{
int i, n = n_basic_blocks;
@@ -3094,8 +3091,11 @@ free_basic_block_vars (keep_head_end_p)
if (! keep_head_end_p)
{
- clear_edges ();
- VARRAY_FREE (basic_block_info);
+ if (basic_block_info)
+ {
+ clear_edges ();
+ VARRAY_FREE (basic_block_info);
+ }
n_basic_blocks = 0;
ENTRY_BLOCK_PTR->aux = NULL;
@@ -6390,7 +6390,7 @@ debug_flow_info ()
dump_flow_info (stderr);
}
-static void
+void
dump_edge_info (file, e, do_succ)
FILE *file;
edge e;