aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-09-05 14:13:28 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-09-05 14:13:28 +0000
commit86bf2d46b6350e9af1d3a2e6ee75c1080d26b1c5 (patch)
tree7b7352545d44596f0dda741d3a58b1f06d4f608c /gcc/final.c
parent7fa55ff675da902516b0e0624e8436b823122963 (diff)
downloadgcc-86bf2d46b6350e9af1d3a2e6ee75c1080d26b1c5.zip
gcc-86bf2d46b6350e9af1d3a2e6ee75c1080d26b1c5.tar.gz
gcc-86bf2d46b6350e9af1d3a2e6ee75c1080d26b1c5.tar.bz2
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
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 81c750d..d9a887f 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -4879,10 +4879,9 @@ get_call_cgraph_rtl_info (rtx_insn *insn)
in REG_SET. Return DEFAULT_SET in REG_SET if not found. */
bool
-get_call_reg_set_usage (rtx uncast_insn, HARD_REG_SET *reg_set,
+get_call_reg_set_usage (rtx_insn *insn, HARD_REG_SET *reg_set,
HARD_REG_SET default_set)
{
- rtx_insn *insn = safe_as_a <rtx_insn *> (uncast_insn);
if (flag_use_caller_save)
{
struct cgraph_rtl_info *node = get_call_cgraph_rtl_info (insn);