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


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 (éå)


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