diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-26 18:34:34 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-26 18:34:34 +0000 |
commit | e00022e9711439804cf9aff66613b4e382d7d158 (patch) | |
tree | 403af59efe3e52c3335151f78aecc36cdbae6135 /gcc/cfgrtl.c | |
parent | 6c7069d663dc13364ca0495f812790e18b9776ae (diff) | |
download | gcc-e00022e9711439804cf9aff66613b4e382d7d158.zip gcc-e00022e9711439804cf9aff66613b4e382d7d158.tar.gz gcc-e00022e9711439804cf9aff66613b4e382d7d158.tar.bz2 |
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
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index ee98660..2fe9593 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -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. */ |