This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Eliminate useless test of variable before overwriting it in sh-tdep.c
- From: Fred Fish <fnf at ninemoons dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>, fnf at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 19 Feb 2004 17:17:18 -0700
- Subject: Re: [RFA] Eliminate useless test of variable before overwriting it in sh-tdep.c
- References: <200402121512.40574.fnf@ninemoons.com> <16432.58684.128094.521393@localhost.redhat.com>
- Reply-to: fnf at ninemoons dot com
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