Eliminate the checked cast from get_call_reg_set_usage
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 5 Sep 2014 14:13:28 +0000 (14:13 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 5 Sep 2014 14:13:28 +0000 (14:13 +0000)
commit86bf2d46b6350e9af1d3a2e6ee75c1080d26b1c5
tree7b7352545d44596f0dda741d3a58b1f06d4f608c
parent7fa55ff675da902516b0e0624e8436b823122963
Eliminate the checked cast from get_call_reg_set_usage

gcc/ChangeLog
2014-09-05  David Malcolm  <dmalcolm@redhat.com>

* caller-save.c (setup_save_areas): Strengthen local "insn" from
rtx to rtx_insn *.
* final.c (get_call_reg_set_usage): Likewise for first param,
eliminating a checked cast.
* regs.h (get_call_reg_set_usage): Likewise for first param.
* resource.c (mark_set_resources): Introduce local rtx_call_insn *
"call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
cast, replacing references to "x" with "call_insn" where
appropriate.
(mark_target_live_regs): Strengthen local "real_insn" from rtx to
rtx_insn *, adding a checked cast.

From-SVN: r214962
gcc/ChangeLog
gcc/caller-save.c
gcc/final.c
gcc/regs.h
gcc/resource.c