This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA] Eliminate useless test of variable before overwriting it in sh-tdep.c


On Monday 16 February 2004 08:43, Elena Zannoni wrote:
>
> ok.

Committed.

-Fred

2004-02-19  Fred Fish  <fnf@redhat.com>

	* sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
	cache->uses_fp prior to setting it.

Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.164
diff -c -p -r1.164 sh-tdep.c
*** sh-tdep.c	19 Feb 2004 23:05:07 -0000	1.164
--- sh-tdep.c	20 Feb 2004 00:14:57 -0000
*************** sh_analyze_prologue (CORE_ADDR pc, CORE_
*** 482,489 ****
  	}
        else if (IS_MOV_SP_FP (inst))
  	{
! 	  if (!cache->uses_fp)
! 	    cache->uses_fp = 1;
  	  /* At this point, only allow argument register moves to other
  	     registers or argument register moves to @(X,fp) which are
  	     moving the register arguments onto the stack area allocated
--- 482,488 ----
  	}
        else if (IS_MOV_SP_FP (inst))
  	{
! 	  cache->uses_fp = 1;
  	  /* At this point, only allow argument register moves to other
  	     registers or argument register moves to @(X,fp) which are
  	     moving the register arguments onto the stack area allocated



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