From: David Malcolm Date: Thu, 2 Jun 2016 19:27:10 +0000 (+0000) Subject: microblaze.c: fix warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e29525d3df727cf907194af2874d3eb5c774226c;p=gcc.git 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 --- 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;