From e29525d3df727cf907194af2874d3eb5c774226c Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 2 Jun 2016 19:27:10 +0000 Subject: [PATCH] microblaze.c: fix warnings gcc/ChangeLog: * config/microblaze/microblaze.c (get_branch_target): Add return NULL_RTX for the non-CALL_P case. (insert_wic_for_ilb_runout): Remove unused local "wic_addr1". (insert_wic): Remove unused local "j". From-SVN: r237044 --- gcc/ChangeLog | 7 +++++++ gcc/config/microblaze/microblaze.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2dbeee5fb94..2a0951bfe96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-06-02 David Malcolm + + * config/microblaze/microblaze.c (get_branch_target): Add return + NULL_RTX for the non-CALL_P case. + (insert_wic_for_ilb_runout): Remove unused local "wic_addr1". + (insert_wic): Remove unused local "j". + 2016-06-02 Martin Liska * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name. diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index baff67a89c9..8f4768ec54c 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -3624,6 +3624,8 @@ get_branch_target (rtx branch) abort (); return XEXP (XEXP (call, 0), 0); } + + return NULL_RTX; } /* Heuristics to identify where to insert at the @@ -3650,7 +3652,6 @@ insert_wic_for_ilb_runout (rtx_insn *first) int addr_offset = 0; int length; int wic_addr0 = 128 * 4; - int wic_addr1 = 128 * 4; int first_addr = INSN_ADDRESSES (INSN_UID (first)); @@ -3693,7 +3694,7 @@ static void insert_wic (void) { rtx_insn *insn; - int i, j; + int i; basic_block bb, prev = 0; rtx branch_target = 0; -- 2.30.2