diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-26 19:12:49 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-26 19:12:49 +0000 |
commit | 3e75e92b20bd87818b4eb9916acfab125f6dbb47 (patch) | |
tree | 2137ddb04f6d120f86daaf3303e8d44712e7f0ec /gcc/cfgrtl.c | |
parent | 8591d646f9bff4169bb0f27b73d18e9e4ac511e6 (diff) | |
download | gcc-3e75e92b20bd87818b4eb9916acfab125f6dbb47.tar.gz |
Params of add_insn and unlink_insn_chain
gcc/
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
(unlink_insn_chain): Strengthen both params from rtx to
rtx_insn *.
* cfgrtl.c (cfg_layout_function_header): Likewise for this
variable.
(unlink_insn_chain): Likewise for params "first" and "last".
Remove now-redundant checked cast.
(record_effective_endpoints): Replace use of NULL_RTX with NULL.
(fixup_reorder_chain): Strengthen local "insn" from rtx to
rtx_insn *.
* emit-rtl.c (link_insn_into_chain): Likewise for all three
params.
(add_insn): Likewise for param "insn" and local "prev".
(add_insn_after_nobb): Likewise for both params and local "next".
(add_insn_before_nobb): Likewise for both params and local "prev".
(add_insn_after): Rename param "after" to "uncast_after",
introducing local "after" with another checked cast.
(add_insn_before): Rename params "insn" and "before", giving them
"uncast_" prefixes, adding the old names back using checked casts.
(emit_note_after): Likewise for param "after".
(emit_note_before): Likewise for param "before".
(emit_label): Add a checked cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index db6c8f8f6f7..7b1fc2c4c94 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -65,7 +65,7 @@ along with GCC; see the file COPYING3. If not see /* Holds the interesting leading and trailing notes for the function. Only applicable if the CFG is in cfglayout mode. */ static GTY(()) rtx_insn *cfg_layout_function_footer; -static GTY(()) rtx cfg_layout_function_header; +static GTY(()) rtx_insn *cfg_layout_function_header; static rtx_insn *skip_insns_after_block (basic_block); static void record_effective_endpoints (void); @@ -3305,7 +3305,7 @@ fixup_abnormal_edges (void) /* Cut the insns from FIRST to LAST out of the insns stream. */ rtx_insn * -unlink_insn_chain (rtx first, rtx last) +unlink_insn_chain (rtx_insn *first, rtx_insn *last) { rtx_insn *prevfirst = PREV_INSN (first); rtx_insn *nextlast = NEXT_INSN (last); @@ -3320,7 +3320,7 @@ unlink_insn_chain (rtx first, rtx last) set_last_insn (prevfirst); if (!prevfirst) set_first_insn (nextlast); - return as_a <rtx_insn *> (first); + return first; } /* Skip over inter-block insns occurring after BB which are typically @@ -3448,7 +3448,7 @@ record_effective_endpoints (void) cfg_layout_function_header = unlink_insn_chain (get_insns (), PREV_INSN (insn)); else - cfg_layout_function_header = NULL_RTX; + cfg_layout_function_header = NULL; next_insn = get_insns (); FOR_EACH_BB_FN (bb, cfun) @@ -3639,7 +3639,7 @@ static void fixup_reorder_chain (void) { basic_block bb; - rtx insn = NULL; + rtx_insn *insn = NULL; if (cfg_layout_function_header) { |