This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, committed] remove trivialy unused variables
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: tbsaunde+binutils at tbsaunde dot org
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 09 May 2016 08:38:25 +0100
- Subject: Re: [PATCH, committed] remove trivialy unused variables
- Authentication-results: sourceware.org; auth=none
- References: <1462666464-7737-1-git-send-email-tbsaunde+binutils at tbsaunde dot org>
tbsaunde+binutils@tbsaunde.org writes:
> @@ -206,8 +206,6 @@ iq2000_scan_prologue (struct gdbarch *gdbarch,
> struct symtab_and_line sal;
> CORE_ADDR pc;
> CORE_ADDR loop_end;
> - int found_store_lr = 0;
> - int found_decr_sp = 0;
> int srcreg;
> int tgtreg;
> signed short offset;
> @@ -251,7 +249,6 @@ iq2000_scan_prologue (struct gdbarch *gdbarch,
> cache->saved_regs[tgtreg] = -((signed short) (insn & 0xffff));
>
> if (tgtreg == E_LR_REGNUM)
> - found_store_lr = 1;
We should remove line "if (tgtreg == E_LR_REGNUM)" as well, otherwise,
the code behavior is changed.
> continue;
> }
>
--
Yao (éå)