Tighten up params of create_basic_block_structure
gcc/ * basic-block.h (create_basic_block_structure): Strengthen params 1 "head" and 2 "end" from rtx to rtx_insn *. * cfgrtl.c (create_basic_block_structure): Likewise. (rtl_create_basic_block): Update casts from void * to rtx to rtx_insn *, so that we can pass them as rtx_insn * to create_basic_block_structure. * sel-sched-ir.c (sel_create_basic_block): Likewise. From-SVN: r214533
This commit is contained in:
parent
6c7069d663
commit
e00022e971
@ -1,3 +1,13 @@
|
||||
2014-08-26 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* basic-block.h (create_basic_block_structure): Strengthen params
|
||||
1 "head" and 2 "end" from rtx to rtx_insn *.
|
||||
* cfgrtl.c (create_basic_block_structure): Likewise.
|
||||
(rtl_create_basic_block): Update casts from void * to rtx to
|
||||
rtx_insn *, so that we can pass them as rtx_insn * to
|
||||
create_basic_block_structure.
|
||||
* sel-sched-ir.c (sel_create_basic_block): Likewise.
|
||||
|
||||
2014-08-26 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
|
||||
|
@ -411,8 +411,8 @@ extern void remove_edge_raw (edge);
|
||||
extern void redirect_edge_succ (edge, basic_block);
|
||||
extern edge redirect_edge_succ_nodup (edge, basic_block);
|
||||
extern void redirect_edge_pred (edge, basic_block);
|
||||
extern basic_block create_basic_block_structure (rtx, rtx, rtx_note *,
|
||||
basic_block);
|
||||
extern basic_block create_basic_block_structure (rtx_insn *, rtx_insn *,
|
||||
rtx_note *, basic_block);
|
||||
extern void clear_bb_flags (void);
|
||||
extern void dump_bb_info (FILE *, basic_block, int, int, bool, bool);
|
||||
extern void dump_edge_info (FILE *, edge, int, int);
|
||||
|
@ -271,7 +271,7 @@ delete_insn_chain (rtx start, rtx finish, bool clear_bb)
|
||||
AFTER is the basic block we should be put after. */
|
||||
|
||||
basic_block
|
||||
create_basic_block_structure (rtx head, rtx end, rtx_note *bb_note,
|
||||
create_basic_block_structure (rtx_insn *head, rtx_insn *end, rtx_note *bb_note,
|
||||
basic_block after)
|
||||
{
|
||||
basic_block bb;
|
||||
@ -351,7 +351,8 @@ create_basic_block_structure (rtx head, rtx end, rtx_note *bb_note,
|
||||
static basic_block
|
||||
rtl_create_basic_block (void *headp, void *endp, basic_block after)
|
||||
{
|
||||
rtx head = (rtx) headp, end = (rtx) endp;
|
||||
rtx_insn *head = (rtx_insn *) headp;
|
||||
rtx_insn *end = (rtx_insn *) endp;
|
||||
basic_block bb;
|
||||
|
||||
/* Grow the basic block array if needed. */
|
||||
|
@ -5358,7 +5358,8 @@ sel_create_basic_block (void *headp, void *endp, basic_block after)
|
||||
new_bb = orig_cfg_hooks.create_basic_block (headp, endp, after);
|
||||
else
|
||||
{
|
||||
new_bb = create_basic_block_structure ((rtx) headp, (rtx) endp,
|
||||
new_bb = create_basic_block_structure ((rtx_insn *) headp,
|
||||
(rtx_insn *) endp,
|
||||
new_bb_note, after);
|
||||
new_bb->aux = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user