[PATCH, committed] remove trivialy unused variables

Yao Qi qiyaoltc@gmail.com
Mon May 9 07:38:00 GMT 2016


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 (齐尧)



More information about the Gdb-patches mailing list