Reviewed and approved by ezannoni@redhat.com

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.
This commit is contained in:
Fred Fish 2004-02-20 00:16:16 +00:00
parent 74974d3755
commit 960ccd7d81
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.
2004-02-19 Fred Fish <fnf@redhat.com>
Fix for PR breakpoint/1558.

View File

@ -482,8 +482,7 @@ sh_analyze_prologue (CORE_ADDR pc, CORE_ADDR current_pc,
}
else if (IS_MOV_SP_FP (inst))
{
if (!cache->uses_fp)
cache->uses_fp = 1;
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