This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, committed] remove trivialy unused variables


On Mon, May 09, 2016 at 08:38:25AM +0100, Yao Qi wrote:
> 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.

ouch, not sure how me and Pedro both missed that :(  I'll send a  fix
tonight.

Trev

> 
> >  	  continue;
> >  	}
> >  
> 
> -- 
> Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]