flow.c (flow_delete_block): Rename from delete_block.

* flow.c (flow_delete_block): Rename from delete_block.  Export.
        * basic-block.h (flow_delete_block): Declare.

From-SVN: r33458
This commit is contained in:
Richard Henderson 2000-04-26 21:26:47 -07:00 committed by Richard Henderson
parent 9485c46e30
commit 5229452121
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2000-04-26 Richard Henderson <rth@cygnus.com>
* flow.c (flow_delete_block): Rename from delete_block. Export.
* basic-block.h (flow_delete_block): Declare.
2000-04-26 David S. Miller <davem@redhat.com>
* optabs.c (emit_libcall_block): Verify insns with INSN_P before

View File

@ -231,6 +231,7 @@ extern void make_edge PARAMS ((sbitmap *, basic_block,
basic_block, int));
extern void remove_edge PARAMS ((edge));
extern void create_basic_block PARAMS ((int, rtx, rtx, rtx));
extern int flow_delete_block PARAMS ((basic_block));
extern void merge_blocks_nomove PARAMS ((basic_block, basic_block));
extern void tidy_fallthru_edge PARAMS ((edge, basic_block,
basic_block));

View File

@ -306,7 +306,6 @@ static void commit_one_edge_insertion PARAMS ((edge));
static void delete_unreachable_blocks PARAMS ((void));
static void delete_eh_regions PARAMS ((void));
static int can_delete_note_p PARAMS ((rtx));
static int delete_block PARAMS ((basic_block));
static void expunge_block PARAMS ((basic_block));
static int can_delete_label_p PARAMS ((rtx));
static int merge_blocks_move_predecessor_nojumps PARAMS ((basic_block,
@ -1749,7 +1748,7 @@ delete_unreachable_blocks ()
}
/* Delete all unreachable basic blocks. Count down so that we don't
interfere with the block renumbering that happens in delete_block. */
interfere with the block renumbering that happens in flow_delete_block. */
deleted_handler = 0;
@ -1761,7 +1760,7 @@ delete_unreachable_blocks ()
/* This block was found. Tidy up the mark. */
b->aux = NULL;
else
deleted_handler |= delete_block (b);
deleted_handler |= flow_delete_block (b);
}
tidy_fallthru_edges ();
@ -1849,8 +1848,8 @@ flow_delete_insn_chain (start, finish)
/* ??? Preserving all such notes strikes me as wrong. It would be nice
to post-process the stream to remove empty blocks, loops, ranges, etc. */
static int
delete_block (b)
int
flow_delete_block (b)
basic_block b;
{
int deleted_handler = 0;