From 49506606f08072a9780d8eef521ea06bf2edc06e Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 5 Sep 2014 01:32:23 +0000 Subject: [PATCH] Remove a cast in cse.c gcc/ 2014-09-05 David Malcolm * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to rtx_insn *, eliminating a checked cast. From-SVN: r214932 --- gcc/ChangeLog | 5 +++++ gcc/cse.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60653f84d2b..7b32da10d89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-05 David Malcolm + + * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to + rtx_insn *, eliminating a checked cast. + 2014-09-05 David Malcolm * rtl.h (modified_between_p): Strengthen params 2 and 3 from diff --git a/gcc/cse.c b/gcc/cse.c index 866b0ee5bc7..90b08b62fd1 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -5435,7 +5435,8 @@ cse_insn (rtx_insn *insn) and hope for the best. */ if (n_sets == 1) { - rtx new_rtx, note; + rtx_insn *new_rtx; + rtx note; new_rtx = emit_jump_insn_before (gen_jump (XEXP (src, 0)), insn); JUMP_LABEL (new_rtx) = XEXP (src, 0); @@ -5450,7 +5451,7 @@ cse_insn (rtx_insn *insn) } delete_insn_and_edges (insn); - insn = as_a (new_rtx); + insn = new_rtx; } else INSN_CODE (insn) = -1; -- 2.30.2